You can grant a user sudo privilege by issuing the command
sudo usermod -aG sudo username from an account that already
has the capability to run the sudo command.
jack@firefly:~$ sudo usermod -aG sudo mary [sudo: authenticate] Password: jack@firefly:~$
You can remove a user's account from the list of those allowed to run
the command using the gpasswd command, which is part of the sysutils package,
by issuing the command sudo gpasswd -d username sudo.
jack@firefly:~$ sudo gpasswd -d mary sudo Removing user mary from group sudo jack@firefly:~$ groups mary | grep -c sudo 0 jack@firefly:~$
[ More Info ]
