0

Parts of the configuration in my /etc/sudousers

#includedir /etc/sudoers.d
web ALL=NOPASSWD: ALL
somebody ALL=NOPASSWD: ALL

I have two non-super users granted with sudo-without passsword. Each of them can become the root without password, but I try this:

web@web01:~$ sudo -u somebody sudo echo "success"
[sudo] password for web: 

let user web to become somebody and execute another sudo command, the system ask me for password. How do I configure sudouser to disalbe the password-asked ?

0

Use something along these lines:

web@web01:~$ sudo su - somebody
Last login: Wed Mar  1 01:22:27 CST 2017 on pts/1
somebody@web01:~$ sudo whoami
root
somebody@web01:~$ exit
web@web01:~$ #success

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.