Answers for "create a sudo user in centos 7"

0

add user with sudoer centos

echo "username  ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/username
Posted by: Guest on March-24-2020
-1

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
Posted by: Guest on May-03-2020
0

add user with sudoer centos

username ALL=(ALL) NOPASSWD:/usr/bin/du,/usr/bin/ping
Posted by: Guest on March-24-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language