forgot root password !!!!!!!!!!

Hi Experts

I have forgot the root password in solaris 9.0 sparc box for that i have boot with the cdrom with single user mode and i mounted the root file system in /a directory after that i edited the shadow file in that

root: xyxxxiiuu:::3453 i removed the hexa now the output is root:NP:3453:

After that i rebooted the machine it is still asking for root password as per my knowledge it should be blank

This machine is not in NIS.....

Please help on this issue

Thanks in advance

KK

[533 byte] By [54645a] at [2007-11-27 8:59:26]
# 1

remove NP

if you leave it there, it means that the account is not locked, has no password *BUT* doesn't allow for interactive login (unless you use something like authorized keys and ssh - fyi this is a good way to lock an account to force them to use sudo to access and if you don't want a password to expire as they may run cronjobs) -

if the second field in /etc/shadow for root is blank, then there is no password, and you'll not be prompted for password when logging in - jeff

actual root entry should look like this -

root::13691::::::

Message was edited by:

jeffrey.s

jeffrey.sa at 2007-7-12 21:26:50 > top of Java-index,General,Reporting...
# 2

Thanks for the quick respond

I have removed the NP entry also but problem is still like that ...............

no other user accounts are there i just treid to connect through telnet but telnet is also not happening

is there is any other way to recover

Thanks in advance

54645a at 2007-7-12 21:26:50 > top of Java-index,General,Reporting...
# 3
You might have made a mistake editing the file. Its quite sensitive to format.There must be exactly 6 :'s on the line. And a carriage return at the end..
robert.cohena at 2007-7-12 21:26:50 > top of Java-index,General,Reporting...