Adding Users with sudo rights under CentOS 7.x environment

# Do the following as root 

# add a user 
useradd vbird1 

# set a password for the user 
passwd vbird1 

# Changing password for the User vbird1. 
# New password: ****** 
# the Retype new new password: ****** 
# passwd : Updated successfully authentication tokens All. 

# check the / etc / sudoers configuration 
visudo 

# check the following configuration is enabled 
" % wheel ALL = (ALL) ALL " 

# user group is attached to the wheel complement 
the usermod -G wheel -a vbird1

 

Guess you like

Origin www.cnblogs.com/f0rsaken/p/11354131.html