How to drop to root shell prompt in recovery mode
- Inicie sesión ou rexístrese para enviar comentarios
I left a parsing error in /etc/sudoers
Now I can't use sudo, as there is no valid sudoers file. I have gone into recovery mode but I need to drop to root shell prompt. I don't have a su password. How do I get the root prompt?
Thank you!
You had better boot a live system and, mount the local root file system, 'chroot' in it and use visudo to edit the sudoers. For instance, if the root partition is /dev/sda1, I would try, from the live system:
$ sudo mount /dev/sda1 /mnt
$ sudo chroot /mnt
# EDITOR=nano; visudo
Good luck with that.
Thanks, Magic Banana.
I tried that sudo mount /dev/sda1 /mnt and got an error message:
deleted i-node reference
By the way, for some reason when I tried booting from a live CD on a usb stick, I only reached a command prompt interface. There was no GUI. Previously, when I tried out Trisquel this way on the USB stick, prior to actually installing Trisquel, I got the usual GUI.
That is all very weird. Booting the live system has nothing to do with problems on the installed system (it should even work without a hard disk). I hope I am wrong but it looks like part of your hardware is dying...
- Inicie sesión ou rexístrese para enviar comentarios