Recovering lost root password by editing shadow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]
  Powered by Linux