sudoers 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # sudoers file.
  2. #
  3. # This file MUST be edited with the 'visudo' command as root.
  4. # Failure to use 'visudo' may result in syntax or file permission errors
  5. # that prevent sudo from running.
  6. #
  7. # See the sudoers man page for the details on how to write a sudoers file.
  8. #
  9. # 120110 added /usr/sbin/delayedrun to SYSTEM category. also, see sudo line added to script.
  10. # Host alias specification
  11. # User alias specification
  12. # Cmnd alias specification
  13. Cmnd_Alias SHUTDOWN = /sbin/poweroff, /sbin/reboot, /usr/sbin/snapmergepuppy
  14. Cmnd_Alias SYSTEM = /sbin/pup_event_frontend_d, /usr/sbin/delayedrun
  15. # Defaults specification
  16. Defaults env_reset
  17. Defaults env_keep="HOME PATH DISPLAY HOSTNAME LANG"
  18. Defaults editor=/usr/bin/mp
  19. # asks for root password (not user), only one attempt allowed...
  20. Defaults:users runaspw, passwd_tries=1
  21. # sudo 1.7.2 needs this, for 1.8.1 it is specified in /etc/sudo.conf...
  22. # Defaults:ALL askpass=/usr/sbin/askpass
  23. # Runas alias specification
  24. # User privilege specification
  25. root ALL=(ALL) ALL
  26. # Uncomment to allow people in group wheel to run all commands
  27. # %wheel ALL=(ALL) ALL
  28. # Same thing without a password
  29. # %wheel ALL=(ALL) NOPASSWD: ALL
  30. # Samples
  31. # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
  32. # %users localhost=/sbin/shutdown -h now
  33. # fido belongs to users group...
  34. # %users ALL=(ALL) ALL
  35. # want to run certain apps without asking for password...
  36. # %users ALL=(SHUTDOWN) NOPASSWD: ALL
  37. %users ALL=(ALL) ALL, NOPASSWD: SHUTDOWN, SYSTEM