How do I enable a user, say
userx, to run commands prefixed with
sudo ? After running
userx, I also don’t want to enter a password.
In CentOS, add the user to the
1 echo "userx ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/userx