[ubuntu-za] Sudoer file
Lee Sharp
leesharp at hal-pc.org
Fri Apr 18 13:17:07 UTC 2014
On 04/18/2014 12:33 AM, Bill Cairns wrote:
> I have a small home server (12.04 server) and everything runs well.
>
> There are two users registered on the server. The one (bill) I created
> some time after installation. I can log into it with no problems but
> cannot do any privileged commands using sudo. eg:
>
> bill at cairnmarsh:~$ sudo ls
> [sudo] password for bill:
> bill is not in the sudoers file. This incident will be reported.
> bill at cairnmarsh:~$
>
>
> What is a sudoers file and how do I get bill onto it?
Actually, there are a lot of groups you may need to be in, and there are
some easy ways to do it. From the GUI, go to the System Settings app,
and select User Accounts. Unlock the App (must be an administrator
user) and select the user in question. In Account Type, change it from
Standard to Administrator.
From CLI, type "more /etc/group | grep <admin user>" and you will see
all the groups you need to be in. Now type " sudo usermod -a -G
adm,admin,audio,cdrom,dialout,fax,sudo,dip,video,plugdev,fuse,netdev,lpadmin,sambashare
<new user>" as an example to add to those groups. This example is
overkill... My home system right now would be
"adm,cdrom,sudo,dip,plugdev,lpadmin,sambashare,libvirtd,wireshark"
Lee
More information about the ubuntu-za
mailing list