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

  • From: roshan@xxxxxxxxx (Roshan George)
  • Date: Mon, 11 Jul 2011 12:50:49 +0530

On Mon, 2011-07-11 at 00:26 +0530, Raja Subramanian wrote:

This made plea me get out of bed, power up my laptop and post.
Let me know how it goes. 

Thank you so much for the help, Raja. I forwarded your instructions
(with the modification to unlock the root account) to the tech support
team at my provider soon after receiving them but power failed in the
middle of the night here so I was unable to reply. I'm told they're
attempting to see what fsck is complaining about now.

As for how this happened, I don't really have an explanation. I
originally intended for this server to be where I test ways of doing
things but as time passed I started using it for more than I should
have. To top it all off, I moved from an older unsupported Ubuntu to the
newest release because they pulled the repositories, and so some of my
files were stored _only_ on what this server until I got a git pull off.

Locking the root user was one of these things I was trying out. You see,
Ubuntu runs by default in the following configuration:

1. One or more `admin` users who get elevated privileges using `sudo` by
virtue of being in that group.

2. One `root` user who can't be logged into but with whose privileges
you can run using `sudo`.

3. In the event of going into single-user mode it will drop you at a
root prompt.

There was no real reason to lock root, seeing as `sshd` has
PermitRootLogin set to no. I did it at the time to see if I could
emulate Ubuntu's behaviour. One of the first things I should've checked
was whether dropping into single-user mode worked.

Ridiculous, I know. A perfect storm of mistakes, one might say. I can't
wait to fix everything and do it right this time.

Regards,
-- 
Roshan George <roshan at arjie.com>


Other related posts: