[ubuntu-za] Sudoer file
Bill Cairns
cairnsww at gmail.com
Fri Apr 18 14:24:15 UTC 2014
Thanks Lee - but part of my problem is that the server has no GUI!
On 18 April 2014 15:17, Lee Sharp <leesharp at hal-pc.org> wrote:
> 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
>
>
> --
> ubuntu-za mailing list
> ubuntu-za at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-za
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-za/attachments/20140418/4e0f4ff1/attachment.html>
More information about the ubuntu-za
mailing list