Answers for "add user to sudoers"

16

add user to sudoers

usermod -aG sudo username
Posted by: Guest on March-29-2020
8

add sudo user ubuntu

# add a user and set a password
adduser USERNAME

# add user to sudoers / sudo groupe with command below
usermod -aG sudo USERNAME
Posted by: Guest on September-22-2020
0

add user to sudoers

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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language