Sudoers CLI
Sajan Parikh
sajan at parikh.io
Sun Mar 9 19:28:52 UTC 2014
On 03/09/2014 02:13 PM, Marty Sweet wrote:
> Hi,
>
>> From the console, how do I add a user to the list of sudoers? /etc/sudoers
>> nor sudoers.d
>
> This is possible by adding users to the 'sudo' group. For example:
> user at ubuntu:~# sudo adduser bkup sudo
>
> Marty
>
I believe that will only work if the user has not been created.
To add a user to a group, with a user that already exists, AND not to
replace the groups, but just add.
$ sudo usermod -a -G sudo bkup
More information about the ubuntu-users
mailing list