How to recover a unix root password?

Status
Not open for further replies.

m_mosazadeh

Member level 4
Joined
Apr 25, 2004
Messages
69
Helped
0
Reputation
0
Reaction score
1
Trophy points
1,286
Location
iran
Activity points
350
unix root password

hello all,

I forgot my unix root password. can anyone help me that I recover my

password?





with vey best wishes
 

Re: unix root password

Boot into single user mode (from HD or from CDROM)...and reset root password...

Well..you have to remount your root partition rw of course (o;
 

Re: unix root password

Reboot your machine in single mode. Afterwards for instance in Solaris you have to change your root passwd.

mount your disk involving your /etc directory.

Go into /etc and edit the shadow file with vi.
the 1st line usually looks like this:

root:sdo3md3:1245:::::

The second entry (here sdo...) has to been deleted in such a way that the first line look like this:

root::1245:::::

Reboot your machine in normal mode (no rootpasswd is needed to login!)and change your rootpasswd using passwd.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…