Ubuntu – Add New User with nopassword Sudo

adduser someone

usermod -aG sudo someone

echo "someone ALL=(ALL:ALL) NOPASSWD:ALL" | sudo tee \
/etc/sudoers.d/someone

chmod 0440 /etc/sudoers.d/someone

Leave a Reply

Your email address will not be published. Required fields are marked *