Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #includedir /etc/sudoers.d
  2. web ALL=NOPASSWD: ALL
  3. somebody ALL=NOPASSWD: ALL
  4.  
  5. web@web01:~$ sudo -u somebody sudo echo "success"
  6. [sudo] password for web:
  7.  
  8. web@web01:~$ sudo su - somebody
  9. Last login: Wed Mar 1 01:22:27 CST 2017 on pts/1
  10. somebody@web01:~$ sudo whoami
  11. root
  12. somebody@web01:~$ exit
  13. web@web01:~$ #success
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement