[Ilugc] Locked Root password, Debian 5 refuses to go into single user mode

  • From: rajasuperman@xxxxxxxxx (Raja Subramanian)
  • Date: Mon, 11 Jul 2011 00:44:32 +0530

On Mon, Jul 11, 2011 at 12:26 AM, Raja Subramanian
<rajasuperman at gmail.com> wrote:

5. run passwd to reset the root password. ?You are already root
so you will not be promoted for current password.

That needs to be "passwd -u" to unlock the root account.
I misunderstood that you lost the root password.

If that does not work, "vi /etc/shadow" and delete the entire
encrypted password field for root.  It makes the root account
password less (just press enter when prompted for the
password).

This only solves the root access problem.  fsck is a completely
different issue.


Btw, this is the first time in 15 years I've come across someone
locking the root account.  Sounds like a terrible idea.  Why are
you following this practice?

- Raja

Other related posts: