1. sudo is a
command-line application that lets you run commands as root or another user.
2. A user can
be granted sudo capabilities in one of two methods.
3. /etc/sudoers
is a file that contains a list of sudoers.
4. This file
includes information about which users and groups are granted sudo privileges,
as well as the level of privileges they have.
5. The second
method is to include the user in the sudoers file's sudo group.
1. You need to be the root user to edit the /etc/sudoers file , run the below command,





2. If you need to add user in the sudo group, run below command .


3. The -aG
option instructs the system to add the user to the group provided. (With G, the
-a option is solely used.)

Note :
“group name” may be wheel or sudo or
what mentioned in the sudoers file.
That's it, the session get completed.
Comments
Post a Comment