a guest Feb 19th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #includedir /etc/sudoers.d
- web ALL=NOPASSWD: ALL
- somebody ALL=NOPASSWD: ALL
- web@web01:~$ sudo -u somebody sudo echo "success"
- [sudo] password for web:
- web@web01:~$ sudo su - somebody
- Last login: Wed Mar 1 01:22:27 CST 2017 on pts/1
- somebody@web01:~$ sudo whoami
- somebody@web01:~$ exit
- web@web01:~$ #success
RAW Paste Data