Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm very new to Linux so I don't understand a lot of the terms you guys use. I need a basic answer on why I keep getting admin group does not exist. I accidentally changed my initial account from admin to a standard user and I do not have admin privileges anymore. How can I recover from this. Please explain this in very basic terms for me. I tried some of the answers given but none of them helped me.

share|improve this question
1  
try rebooting into single user mode (at the selection screen at boot you should see options that say "recovery mode" or something like that). This will log you into a command line as root. Then follow the instructions here to re-add your user to the admin group: askubuntu.com/questions/7477/how-can-i-add-a-new-user-as-sudoer –  adempewolff May 22 '12 at 3:24
5  
Starting with 12.04, the admin group is now sudo. See wiki.ubuntu.com/PrecisePangolin/ReleaseNotes/… –  bodhi.zazen May 22 '12 at 3:31
    
possible duplicate of How do I add myself back as a sudo user? –  Eliah Kagan Aug 1 at 2:54

1 Answer 1

Following up on the comments above:

Because the admin group doesn't exist on your system we are assuming you are running 12.04. To be able to administer your system with 12.04 you need your user-id to be in the sudo group. I was able to add a user-id to the sudo group as follows.

Reboot using grub and select an entry for recovery mode.

Select the "root" option from the Recovery Menu. From the terminal that opens at the very bottom type:

mount -o remount,rw /

sudo addgroup your-username sudo

Then you can resume the boot by holding control and pressing "d" and select resume from the Recovery Menu.

As explanation, in recovery mode you come up with the root filesystem in read-only "error mode". The first command makes the file system writeable. The second command adds your-username to the sudo group.

When you continue the boot, or somehow reboot, your user-id will be able to use the sudo command as normal. Once you have sudo privileges you can add another administrative user and see what groups they are in, and then you can add your account to those groups, too.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.