My worst fear about Ubuntu has been realized. I can't run commands with sudo because all of a sudden I'm not in /etc/sudoers and of course I can't edit /etc/sudoers because I can't do "sudo kate /etc/sudoers". Nor can I log out of my regular user account and log in as root because during the OS installation I was never asked for a password for the root account. I have only my password for my regular account and when I do sudo kate /etc/sudoers it replies:
jujube@norman64:~$ sudo kate /etc/sudoers
[sudo] password for jujube:
jujube is not in the sudoers file. This incident will be reported.
jujube@norman64:~$
I don't know if it makes any difference but when I installed the OS (Kubuntu 11.10) I elected to have it log me in automatically. The sudo command worked perfectly for 2 months until today. I've never edited the sudoers file so how could I be removed from it (asking to prevent this happening again in the future)?
I've rebooted but that hasn't helped. What can I do to get me back in the sudoers file? Is there another way out of this?
jujube@norman64:~$ sudo kate /etc/sudoers
[sudo] password for jujube:
jujube is not in the sudoers file. This incident will be reported.
jujube@norman64:~$
I don't know if it makes any difference but when I installed the OS (Kubuntu 11.10) I elected to have it log me in automatically. The sudo command worked perfectly for 2 months until today. I've never edited the sudoers file so how could I be removed from it (asking to prevent this happening again in the future)?
I've rebooted but that hasn't helped. What can I do to get me back in the sudoers file? Is there another way out of this?
Comment