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
# 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 >
