Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

create a sudo user in centos 7

Create a new user accoun: useradd username
Set the user password: passwd username
Add the new user to the sudo group: usermod -aG wheel username
su - username, then run, echo "username  ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/username
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #sudo #user #centos
ADD COMMENT
Topic
Name
6+6 =