MoonPoint Support Logo

 

Shop Amazon Warehouse Deals - Deep Discounts on Open-box and Used ProductsAmazon Warehouse Deals



Advanced Search
February
Sun Mon Tue Wed Thu Fri Sat
17 18 19 20 21
22 23 24 25 26 27 28
2026
Months
FebMar
Apr May Jun
Jul Aug Sep
Oct Nov Dec


Tue, Feb 17, 2026 1:57 pm

Adding and removing users from the sudoers list on an Ubuntu Linux system

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 ]

[/ToPost] permanent link

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo