I'm running Ubuntu Server 11.04. It came time to add User to the sudoers file: so I decided to simple add User to the admin group: usermod -a -G admin user

Then I used visudo to check if admin users had been set to receive sudo privileges. I uncommented the line admin ALL=(ALL) ALL. And viola!

Nothing happened. I've even tried to add user directly into the sudoers file as user ALL=(ALL:ALL) ALL, but that failed too.

Ideas?

Defaults env_reset
root ALL=(ALL:ALL) ALL
admin ALL=(ALL) ALL
%sudo ALL=(ALL:ALL) ALL

link|improve this question
see my comment below my Answer. – Dan M. Jun 22 '11 at 19:26
did that fix the issue? – Dan M. Jun 23 '11 at 11:58
Yes it did! Thanks! – faraz Jun 23 '11 at 14:22
yasha Good I'm glad! :) maybe mark as answered so others can see the fix? ;-) – Dan M. Jun 23 '11 at 14:37
feedback

1 Answer

up vote 2 down vote accepted

Can you post the relevant sections of your sudoers file?

Re-posted from the comment below:

[edit]admin should be %admin - Percent signs are used for groups, you could have also just added the user to be in the sudo group [/edit]

One quick thing to try is to run grpconv from a root terminal, be it by

su -c'grpconv'

from a non-root terminal

or actually loggin in as root and entering

grpconv

link|improve this answer
1  
admin should be %admin - Percent signs are used for groups, you could have also just added the user to be in the sudo group – Dan M. Jun 22 '11 at 19:19
feedback

Your Answer

 
or
required, but never shown

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