Answers for "Add User to Sudoers in CentOS"

1

Add User to Sudoers in CentOS

#create username and set password
useradd username
passwd username
#Verify the Wheel Group is Enabled
sudo visudo
%wheel        ALL=(ALL)       ALL
#Add User to Group
usermod -aG wheel username
# Open the Sudoers File in an Editor
sudo visudo
root ALL=(ALL) ALL
username ALL=(ALL) ALL
#Now you can switch to new username
su — username
Posted by: Guest on March-17-2021
4

add user centos 7 sudo

useradd username
passwd username
Posted by: Guest on March-14-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language