Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

add user to sudoer

sudo grep -B1 -i '^%sudo' /etc/sudoers

# Allow members of group sudo to execute any command
#%sudo	ALL=(ALL:ALL) ALL

sudo adduser <UserNameHere> sudo

or

sudo usermod -aG sudo <UserNAmeHere>

id  <UserNAmeHere>
Source by www.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #add #user #sudoer
ADD COMMENT
Topic
Name
8+8 =