Security News > 2023 > August > How to Quickly Give Users sudo Privileges in Linux

How to Quickly Give Users sudo Privileges in Linux
2023-08-22 14:23

How to Quickly Give Users sudo Privileges in Linux If you have users that need certain admin privileges on your Linux machines, here's a walk-through of the process for granting full or specific rights.

How many times have you created a new user on a Linux machine, only to find out that new user doesn't have sudo privileges? Without the ability to use sudo, that user is limited in what they can do.

Most modern Linux distributions have a user group which grants sudo privileges simply by virtue of being a member of that group.

Allow members of group sudo to execute any command%sudo ALL=(ALL:ALL) ALL. Figure B. This means all members of the admin group have full sudo privileges.

Sudo usermod -a -G sudo USERNAME. Where USERNAME is the name of the user to be added.

Sudo usermod -a -G wheel USERNAME. Note that the user will continue to have sudo privileges as long as that user has this group assignment.


News URL

https://www.techrepublic.com/article/how-to-quickly-give-users-sudo-privileges-in-linux/

Related vendor

VENDOR LAST 12M #/PRODUCTS LOW MEDIUM HIGH CRITICAL TOTAL VULNS
Linux 11 64 2312 1489 67 3932