Sunday, August 30, 2015

Add user to sudoers

Add user to sudoers

Create user: username
useradd username

Add to sudoers

vi /etc/sudoers
With content
username      ALL=(ALL)       NOPASSWD: ALL


SSH Log in with user: username and switch to user: root
sudo su


It will not ask for the password.

No comments:

Post a Comment