Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. ssh remotehost "sudo ./binary"
  2.  
  3. ssh -t remotehost "sudo ./binary"
  4.  
  5. sudo: no tty present and no askpass program specified
  6.  
  7. # Members of the admin group may gain root privileges
  8. %admin ALL=(ALL) NOPASSWD:ALL
  9.  
  10. # Allow admins to shutdown without pass
  11. %adm ALL=(ALL) NOPASSWD: /sbin/shutdown
  12.  
  13. myuser ALL=(root) NOPASSWD:
  14. /bin/ls -la
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement