Regain Sudo rights after removing from admin group

Posted by berkes on Ask Ubuntu See other posts from Ask Ubuntu or by berkes
Published on 2011-03-04T14:40:29Z Indexed on 2011/03/04 15:33 UTC
Read the original article Hit count: 293

Filed under:
|

Hello,

I accidentally removed myself from the admin group when editing the user. Now I can no longer use sudo. The error says: ber is not in the sudoers file. This incident will be reported.

I booted up in rescue mode, but, when going into root prompt, it asks me for the root password. I don't have one, and providing with my own (first and only ubuntu-user) password, it won't allow entrance.

My harddisk is encrypted, but only the /home/user part, not the entire disk, afaik.

What can I do?

© Ask Ubuntu or respective owner

Related posts about root

Related posts about sudoers