User supposedly not in sudoers file, but already is

5

1

I wanted to give user sudo privileges. I added 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.

It didn't work.

sudoers file:

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

fny

Posted 2011-06-22T17:44:30.770

Reputation: 199

Answers

2

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

Dan M.

Posted 2011-06-22T17:44:30.770

Reputation: 1 676

2admin 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. – 2011-06-22T19:19:55.457