Locked out of machine - please help
info at microlinux.fr
Thu Sep 29 18:43:29 UTC 2011
Le 29/09/2011 18:21, richardkimber at btinternet.com a écrit :
> While adding a user to a group (in a new installation), via the KDE
> settings panel, the process seemed to go OK in the gui, but I found that
> the new group was not listed on the command line by the 'groups'
> command. When I tried to logout I got a message saying that policykit
> had crashed, and I then found that I could not log back in. I tried
> maintenance mode but couldn't get access.
> I booted up a rescue session and set up passwords for both user and
> root, but neither was accepted by the system. I just can't get access
> to the machine at all.
> Is there anything I can do, short of re-installing? It's taken me
> two and a half days to do the install and set everything up :-( so I'd
> like to be able avoid doing that again. Is there perhaps a package that
> could be re-installed in the rescue session that might solve it?
> - Richard
On machines running GRUB 0.97 (and with a root account), there was a
nice trick. On boot, edit the kernel line and add the following boot
Then when you get a login prompt, do this:
# mount -o remount,rw /
Then do what you have to do, for example:
Problem: no init was started, so how to shutdown the machine? Here goes:
# mount -o remount,ro /
And then simply hit the Poweroff button :o)
I'm regularly training folks on RHEL servers, and more often than not,
the students forget their root passwords (ts, ts...). This is a way to
restore things when they shot themselves in the foot.
Unfortunately, a) I don't know how to do this with GRUB2 (which I hate
with a passion), and b) no root account in a default Ubuntu install
(which is the first thing I restore).
Microlinux - Solutions informatiques 100% Linux et logiciels libres
7, place de l'église - 30730 Montpezat
Web : http://www.microlinux.fr
Mail : info at microlinux.fr
Tél. : 04 66 63 10 32
More information about the ubuntu-users