Advertisement
RuslanKorotaev

Sudoers

Aug 9th, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #
  2. # This file MUST be edited with the 'visudo' command as root.
  3. #
  4. # Please consider adding local content in /etc/sudoers.d/ instead of
  5. # directly modifying this file.
  6. #
  7. # See the man page for details on how to write a sudoers file.
  8. #
  9. Defaults env_reset
  10. Defaults mail_badpass
  11. Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  12.  
  13. # Host alias specification
  14.  
  15. # User alias specification
  16. User_Alias PARTTIMERS = rosa
  17.  
  18. # Cmnd alias specification
  19. Cmnd_Alias SHUTDOWN = /sbin/shutdown
  20. Cmnd_Alias HALT = /sbin/halt
  21. Cmnd_Alias REBOOT = /sbin/reboot
  22.  
  23. # User privilege specification
  24. root ALL=(ALL:ALL) ALL
  25. PARTTIMERS ALL = NOPASSWD: SHUTDOWN, HALT, REBOOT
  26.  
  27. # Allow members of group sudo to execute any command
  28. %sudo ALL=(ALL:ALL) ALL
  29.  
  30. # See sudoers(5) for more information on "#include" directives:
  31.  
  32. #includedir /etc/sudoers.d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement