Re: [newbie] lost root password

2003-10-25 Thread Franki
eric wrote:
Hi,

I was recently hospitalized and I didn't use my computer for awhile. 
During that time I forgot my password for root and I forgot where I 
wrote it down.

Can I find that password somewhere on my system? Will I have to do a 
total reinstall?

Thank you for any help you can give.

Eric

Boot from the mandrake CD1

press F1 for more options and then enter rescue at the prompt.

when it comes up, in rescue mode, type: chroot /mnt
(mandrake may have given you the option of doing that from a menu now.. )
when thats done, type:

passwd root

and enter the new password twice.. and reboot..

good stuff

There is no way to get the old password back, its only stored as one way 
encryption,, so it can't be recoved.

rgds

Franki

--
Please sign our petition to encourage notebook manufacturers to offer 
video card upgrades just like desktops.
http://www.petitiononline.com/inspiron/petition.html

For free scripts, online webmaster tools, HTML, XHTML, Perl  PHP 
tutorials and stuff, visit:
http://htmlfixit.com, Free web developer resources.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] lost root password

2003-10-25 Thread Lyvim Xaphir
On Sun, 2003-10-26 at 00:26, eric wrote:
 Hi,
 
 I was recently hospitalized and I didn't use my computer for awhile. 
 During that time I forgot my password for root and I forgot where I 
 wrote it down.
 
 Can I find that password somewhere on my system? Will I have to do a 
 total reinstall?
 
 Thank you for any help you can give.
 
 Eric


When the system boots and you get the boot prompt, type in linux
single.

That will put you into single user root mode where you can execute the
passwd command and change your root password to something you can
remember. :)

LX

-- 
°°°
Linux Mandrake 9.1  Kernel 2.4.21-0.13mdk
*Catch Star Trek Enterprise, Wednesdays on UPN*



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] lost root password

2003-10-25 Thread eric
Franki wrote:

Hi,

I tried the suggestion shown below with no luck. I'm using 9.1, if that 
matters.

Boot from the mandrake CD1

I did that

press F1 for more options and then enter rescue at the prompt.
I did that


when it comes up, in rescue mode, type: chroot /mnt

This didn't work.  When it came up in resue mode, I chose console and 
then entered, chroot/mnt. I got an error. bash no such file or 
directory I got help for chroot. It says, chroot NEWROOT [options] or 
chroot command. Chroot gives me an error, no such directory as NEWROOT

Any idea what I'm doing wrong?

Eric

(mandrake may have given you the option of doing that from a menu now.. )

when thats done, type:

passwd root

and enter the new password twice.. and reboot..

good stuff

There is no way to get the old password back, its only stored as one 
way encryption,, so it can't be recoved.

rgds

Franki



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
 




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] lost root password

2003-10-25 Thread eric
Lyvim Xaphir wrote:

No luck with this.

When the system boots and you get the boot prompt, type in linux
single.
I get an error that says no such file as linux.

Any ideas.

Eric

That will put you into single user root mode where you can execute the
passwd command and change your root password to something you can
remember. :)
LX

 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
 




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] lost root password

2003-10-25 Thread Sharrea Day
On Sun, 26 Oct 2003 20:59, eric wrote:
 Franki wrote:
 I tried the suggestion shown below with no luck. I'm using 9.1, if that
 matters.

  Boot from the mandrake CD1
 I did that

  press F1 for more options and then enter rescue at the prompt.
  I did that

  when it comes up, in rescue mode, type: chroot /mnt
 This didn't work.  When it came up in resue mode, I chose console and
 then entered, chroot/mnt. I got an error. bash no such file or
 directory I got help for chroot. It says, chroot NEWROOT [options] or
 chroot command. Chroot gives me an error, no such directory as NEWROOT

 Any idea what I'm doing wrong?

Follow Franki's instructions but ignore the chroot /mnt part and instead 
choose Mount your partitions in /mnt from the menu that comes up.

Then when it goes back to this same menu choose Go to console.

Continue with Franki's instructions.

Sharrea
-- 
Help Microsoft stamp out piracy - give Linux to a friend today


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] lost root password

2003-10-25 Thread eric
Sharrea Day wrote:

Follow Franki's instructions but ignore the chroot /mnt part and instead 
choose Mount your partitions in /mnt from the menu that comes up.

I did that.

Then when it goes back to this same menu choose Go to console.

It comes back to that menu after I hit enter but after I select go to 
console and I type passwd, I get an error again. I can't remember if it 
was no such file or no such command.

Any ideas what I'm doing wrong?

Eric

Continue with Franki's instructions.

Sharrea
 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
 




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] lost root password

2003-10-25 Thread David E. Fox
 when it comes up, in rescue mode, type: chroot /mnt

Im not certain that's going to work... what is actually mounted at 
that point? His root partition? What chroot does is to change the
root partition basically. Putting in NEWROOT is just a sample place, 
it's not meant to be taken literally. It's more like a variable.

Eric, have you tried booting into failsafe mode? It's one of the 
choices on your menu, or at least it should be there. failsafe will put
the box in single user mode (essentially the same thing as 'linux single'
(which may not work.)

Once you're in single user mode, you should be able to change the 
password for root 'passwd root' type the same password in twice, 
and then telinit 3 and login as root.

 Eric


David E. Fox  Thanks for letting me
[EMAIL PROTECTED]change magnetic patterns
[EMAIL PROTECTED]   on your hard disk.
---

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] lost root password

2003-10-25 Thread Franki
eric wrote:
Franki wrote:

Hi,


I tried the suggestion shown below with no luck. I'm using 9.1, if that 
matters.

Boot from the mandrake CD1


I did that

press F1 for more options and then enter rescue at the prompt.


I did that


when it comes up, in rescue mode, type: chroot /mnt

This didn't work.  When it came up in resue mode, I chose console and 
then entered, chroot/mnt. I got an error. bash no such file or 
directory I got help for chroot. It says, chroot NEWROOT [options] or 
chroot command. Chroot gives me an error, no such directory as NEWROOT

Any idea what I'm doing wrong?

Eric


Probably my fault, I have not needed to do it since mandrake 7.2 so the 
process has apparently changed.
The linux single suggestion will now doubt do it for you now.

rgds

Franki

--
Please sign our petition to encourage notebook manufacturers to offer 
video card upgrades just like desktops.
http://www.petitiononline.com/inspiron/petition.html

For free scripts, online webmaster tools, HTML, XHTML, Perl  PHP 
tutorials and stuff, visit:
http://htmlfixit.com, Free web developer resources.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] lost root password

2003-10-25 Thread Franki
Sharrea Day wrote:

On Sun, 26 Oct 2003 20:59, eric wrote:

Franki wrote:
I tried the suggestion shown below with no luck. I'm using 9.1, if that
matters.

Boot from the mandrake CD1
I did that


press F1 for more options and then enter rescue at the prompt.
I did that

when it comes up, in rescue mode, type: chroot /mnt
This didn't work.  When it came up in resue mode, I chose console and
then entered, chroot/mnt. I got an error. bash no such file or
directory I got help for chroot. It says, chroot NEWROOT [options] or
chroot command. Chroot gives me an error, no such directory as NEWROOT
Any idea what I'm doing wrong?


Follow Franki's instructions but ignore the chroot /mnt part and instead 
choose Mount your partitions in /mnt from the menu that comes up.

Then when it goes back to this same menu choose Go to console.

Continue with Franki's instructions.

Sharrea

Oh well, I was close, its good to know mandrake have not totally changed 
the way it works.

rgds

Franki

--
Please sign our petition to encourage notebook manufacturers to offer 
video card upgrades just like desktops.
http://www.petitiononline.com/inspiron/petition.html

For free scripts, online webmaster tools, HTML, XHTML, Perl  PHP 
tutorials and stuff, visit:
http://htmlfixit.com, Free web developer resources.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] lost root password

2003-10-25 Thread Franki
David E. Fox wrote:

when it comes up, in rescue mode, type: chroot /mnt


Im not certain that's going to work... what is actually mounted at 
that point? His root partition? What chroot does is to change the
root partition basically. Putting in NEWROOT is just a sample place, 
it's not meant to be taken literally. It's more like a variable.

Eric, have you tried booting into failsafe mode? It's one of the 
choices on your menu, or at least it should be there. failsafe will put
the box in single user mode (essentially the same thing as 'linux single'
(which may not work.)

Once you're in single user mode, you should be able to change the 
password for root 'passwd root' type the same password in twice, 
and then telinit 3 and login as root.


Eric



David E. Fox  Thanks for letting me
[EMAIL PROTECTED]change magnetic patterns
[EMAIL PROTECTED]   on your hard disk.
---
David,

I can't say for certain how it works with the newer mandrake
but going into rescue mode used to mount all the linux partitions under /mnt
so chroot mnt (or doing it from the menu) essentially mounted all your 
partitions as per normal.
you essentially have your full system back with the exception that its 
running the kernel from the CDROM.

rgds

Franki

--
Please sign our petition to encourage notebook manufacturers to offer 
video card upgrades just like desktops.
http://www.petitiononline.com/inspiron/petition.html

For free scripts, online webmaster tools, HTML, XHTML, Perl  PHP 
tutorials and stuff, visit:
http://htmlfixit.com, Free web developer resources.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Lost root password

2000-07-14 Thread joakim viktorsson

On Thu, 13 Jul 2000, Jeff Malka wrote:

 Does not sound like much security to me.


as always (hey, it's linux), you can configure this out, if
you feel it's unsafe. to run in single-user mode, you need
to be at a console - you need to be at the machine
physically. your machine can't be hijacked via remote this
way. still, your machine can be stolen and sensitive data
could be on it. if so, disable it.

as always, the security of your machine is up to you.



 ...joakim



 
 Jeff Malka [EMAIL PROTECTED]
 Registered Linux user  183185
 
 - Original Message -
 From: Ricardo Núñez [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: Newbie [EMAIL PROTECTED]
 Sent: Thursday, July 13, 2000 4:28 PM
 Subject: Re: [newbie] Lost root password
 
 
  [EMAIL PROTECTED] wrote:
  
   Hello
   Somehow I lost root password. Is thre any way to login
   as root again?
  
   Thanks a lot.
  
   Eduardo
 
  Reboot in single user mode (in Lilo, type linux s) and run passwd
 
  --
  Saludos,
 
  Ing. Ricardo Núñez
  Webmaster de la DST
  Universidad Simón Bolívar
  E-Mail: [EMAIL PROTECTED]




Re: [newbie] Lost root password

2000-07-14 Thread Eric MC.D

Yes, it can !!
With or without 'single' or 'init 1'.
All you have to do is, have a boot and rescue
floppy at dispo.
Eric



Keith Robinson wrote:
 
 Jeff,
 
 if someone can physically access a machine and boot it,
 there is no software security possible, regardless of the operating system.
 
 --
 Keith
 
 On Thu, 13 Jul 2000, you wrote:
  Does not sound like much security to me.
 
  Jeff Malka [EMAIL PROTECTED]
  Registered Linux user  183185
 
  - Original Message -
  From: Ricardo Núñez [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Cc: Newbie [EMAIL PROTECTED]
  Sent: Thursday, July 13, 2000 4:28 PM
  Subject: Re: [newbie] Lost root password
 
 
   [EMAIL PROTECTED] wrote:
   
Hello
Somehow I lost root password. Is thre any way to login
as root again?
   
Thanks a lot.
   
Eduardo
  
   Reboot in single user mode (in Lilo, type linux s) and run passwd
  
   --
   Saludos,
  
   Ing. Ricardo Núñez
   Webmaster de la DST
   Universidad Simón Bolívar
   E-Mail: [EMAIL PROTECTED]
  
  




Re: [newbie] Lost root password

2000-07-14 Thread Jeff Malka

Oh, I am not paranoid.  Just a newbie trying to understand the ins and outs
of Linux.  Actually it is good to know there is a way out if you should lose
you root password - (or want to impress a newbie).;-)

Jeff Malka [EMAIL PROTECTED]
Registered Linux user  183185

- Original Message -
From: joakim viktorsson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, July 14, 2000 8:49 AM
Subject: Re: [newbie] Lost root password


 On Thu, 13 Jul 2000, Jeff Malka wrote:

  Does not sound like much security to me.


 as always (hey, it's linux), you can configure this out, if
 you feel it's unsafe. to run in single-user mode, you need
 to be at a console - you need to be at the machine
 physically. your machine can't be hijacked via remote this
 way. still, your machine can be stolen and sensitive data
 could be on it. if so, disable it.

 as always, the security of your machine is up to you.



  ...joakim



 
  Jeff Malka [EMAIL PROTECTED]
  Registered Linux user  183185
 
  - Original Message -
  From: Ricardo Núñez [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Cc: Newbie [EMAIL PROTECTED]
  Sent: Thursday, July 13, 2000 4:28 PM
  Subject: Re: [newbie] Lost root password
 
 
   [EMAIL PROTECTED] wrote:
   
Hello
Somehow I lost root password. Is thre any way to login
as root again?
   
Thanks a lot.
   
Eduardo
  
   Reboot in single user mode (in Lilo, type linux s) and run passwd
  
   --
   Saludos,
  
   Ing. Ricardo Núñez
   Webmaster de la DST
   Universidad Simón Bolívar
   E-Mail: [EMAIL PROTECTED]






Re: [newbie] Lost root password

2000-07-14 Thread Dacia and AzureRose

You have to have physical access to the machine to do
this.  Pretty secure against internet hacks.  Not
secure against roommates ;-)


Dacia
--- Jeff Malka [EMAIL PROTECTED] wrote:
 Does not sound like much security to me.
 
 Jeff Malka [EMAIL PROTECTED]
 Registered Linux user  183185
 
 - Original Message -
 From: Ricardo Núñez [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: Newbie [EMAIL PROTECTED]
 Sent: Thursday, July 13, 2000 4:28 PM
 Subject: Re: [newbie] Lost root password
 
 
  [EMAIL PROTECTED] wrote:
  
   Hello
   Somehow I lost root password. Is thre
 any way to login
   as root again?
  
   Thanks a lot.
  
   Eduardo
 
  Reboot in single user mode (in Lilo, type linux s)
 and run passwd
 
  --
  Saludos,
 
  Ing. Ricardo Núñez
  Webmaster de la DST
  Universidad Simón Bolívar
  E-Mail: [EMAIL PROTECTED]
 
 
 


__
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/




Re: [newbie] Lost root password

2000-07-13 Thread Eunice Thompson

[EMAIL PROTECTED] wrote:

 Hello
 Somehow I lost root password. Is thre any way to login
 as root again?

 Thanks a lot.

 Eduardo

At the LILO boot prompt, type :
  linux 1
the system will startup in single user mode, no need to login- you will
already be root. You will have to make a new password for root, so just
type:
  passwd
and follow the prompts. Then just reboot (shutdown -r now)

Good Luck

Eunice Thompson




Re: [newbie] Lost root password

2000-07-13 Thread Ricardo Núñez

[EMAIL PROTECTED] wrote:
 
 Hello
 Somehow I lost root password. Is thre any way to login
 as root again?
 
 Thanks a lot.
 
 Eduardo

Reboot in single user mode (in Lilo, type linux s) and run passwd

-- 
Saludos,

Ing. Ricardo Núñez
Webmaster de la DST
Universidad Simón Bolívar
E-Mail: [EMAIL PROTECTED]




Re: [newbie] Lost root password

2000-07-13 Thread Jeff Malka

Does not sound like much security to me.

Jeff Malka [EMAIL PROTECTED]
Registered Linux user  183185

- Original Message -
From: Ricardo Núñez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Newbie [EMAIL PROTECTED]
Sent: Thursday, July 13, 2000 4:28 PM
Subject: Re: [newbie] Lost root password


 [EMAIL PROTECTED] wrote:
 
  Hello
  Somehow I lost root password. Is thre any way to login
  as root again?
 
  Thanks a lot.
 
  Eduardo

 Reboot in single user mode (in Lilo, type linux s) and run passwd

 --
 Saludos,

 Ing. Ricardo Núñez
 Webmaster de la DST
 Universidad Simón Bolívar
 E-Mail: [EMAIL PROTECTED]






Re: [newbie] Lost root password

2000-07-13 Thread Keith Robinson

Jeff,

if someone can physically access a machine and boot it,
there is no software security possible, regardless of the operating system. 

--
Keith



On Thu, 13 Jul 2000, you wrote:
 Does not sound like much security to me.
 
 Jeff Malka [EMAIL PROTECTED]
 Registered Linux user  183185
 
 - Original Message -
 From: Ricardo Núñez [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: Newbie [EMAIL PROTECTED]
 Sent: Thursday, July 13, 2000 4:28 PM
 Subject: Re: [newbie] Lost root password
 
 
  [EMAIL PROTECTED] wrote:
  
   Hello
   Somehow I lost root password. Is thre any way to login
   as root again?
  
   Thanks a lot.
  
   Eduardo
 
  Reboot in single user mode (in Lilo, type linux s) and run passwd
 
  --
  Saludos,
 
  Ing. Ricardo Núñez
  Webmaster de la DST
  Universidad Simón Bolívar
  E-Mail: [EMAIL PROTECTED]
 
 




Re: [newbie] Lost root password

2000-07-12 Thread bascule

at the lilo prompt, try

linux s or linux single

on some systems this will boot the machine to a single user mode with no
need to login, then you can run (if memory serves) 'passwd root' at the
prompt and change the password for root

some people think this is a security flaw in linux but i have read that
this behaviour can be turned off and i believe is done so if mandrake is
installed with 'high' security mode but i'm not sure about that, maybe
someone can confirm or deny?
hope this helps

bascule

[EMAIL PROTECTED] wrote:
 
 Hello
 Somehow I lost root password. Is thre any way to login
 as root again?
 
 Thanks a lot.
 
 Eduardo




Re: [newbie] Lost root password

2000-07-12 Thread Eric MC.D

AMHA,
An other way, or if single no more exist 
(Sorry Bascule, I doubt it can be done in this mode):

Start with the boot and rescue disk (cd inserted).
After the intro message (if message is), type exit.
Mount a root partition on the HD, utilize fdisk -l to see 
the existing partitions.
After mount it as 
/mnt/rootpart
edit the file with the command:
vi /mnt/rootpart/etc/passwd
the first line will be:
root:F.h5fh/fj4:0:0/root:/bin/bash
With the x key delete all the chars between roo: and :0:0
Must be:
root::root:/root:/bin/bash
Save with ZZ (vi command)
Verify with
cat /mnt/rootpart/etc/passwd
Then unmount as
umount /mnt/rootpart
Type exit and Ctrl+Alt+Del
Now after boot you are connected as root but without
password.
Simply type 
passwd
to set a new password for root.
Hope I didn't forget somewhat.eh
Eric


bascule wrote:
 
 at the lilo prompt, try
 
 linux s or linux single
 
 on some systems this will boot the machine to a single user mode with no
 need to login, then you can run (if memory serves) 'passwd root' at the
 prompt and change the password for root
 
 some people think this is a security flaw in linux but i have read that
 this behaviour can be turned off and i believe is done so if mandrake is
 installed with 'high' security mode but i'm not sure about that, maybe
 someone can confirm or deny?
 hope this helps
 
 bascule
 
 [EMAIL PROTECTED] wrote:
 
  Hello
  Somehow I lost root password. Is thre any way to login
  as root again?
 
  Thanks a lot.
 
  Eduardo