I have lost the root password on a arm server. Cannot use the boot to
single user mode, but can pull the hard drive and mount it on another
system...
So what I did was:
Mount drive on my notebook
Then in a terminal window as root, cd to the drive's /etc dir
chmod 711 shadow
vi shadow
(delete all the characters between the first and second :)
(save the shadow file)
more shadow <- checked that indeed, the password field was now blank
chmod 000 shadow
The unmounted the drive, put it back on the arm server and rebooted.
Logged in as myself then tried 'su' with no password.
Did not work, invalid password
Tried 'login root' with no password. Did not work, invalid password.
So what did I miss? I did notice a file /etc/shadow- that I did not change.
Thank you for any help
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx