1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- # sudoers file.
- #
- # This file MUST be edited with the 'visudo' command as root.
- # Failure to use 'visudo' may result in syntax or file permission errors
- # that prevent sudo from running.
- #
- # See the sudoers man page for the details on how to write a sudoers file.
- #
- # 120110 added /usr/sbin/delayedrun to SYSTEM category. also, see sudo line added to script.
- # Host alias specification
- # User alias specification
- # Cmnd alias specification
- Cmnd_Alias SHUTDOWN = /sbin/poweroff, /sbin/reboot, /usr/sbin/snapmergepuppy
- Cmnd_Alias SYSTEM = /sbin/pup_event_frontend_d, /usr/sbin/delayedrun
- # Defaults specification
- Defaults env_reset
- Defaults env_keep="HOME PATH DISPLAY HOSTNAME LANG"
- Defaults editor=/usr/bin/mp
- # asks for root password (not user), only one attempt allowed...
- Defaults:users runaspw, passwd_tries=1
- # sudo 1.7.2 needs this, for 1.8.1 it is specified in /etc/sudo.conf...
- # Defaults:ALL askpass=/usr/sbin/askpass
- # Runas alias specification
- # User privilege specification
- root ALL=(ALL) ALL
- # Uncomment to allow people in group wheel to run all commands
- # %wheel ALL=(ALL) ALL
- # Same thing without a password
- # %wheel ALL=(ALL) NOPASSWD: ALL
- # Samples
- # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
- # %users localhost=/sbin/shutdown -h now
- # fido belongs to users group...
- # %users ALL=(ALL) ALL
- # want to run certain apps without asking for password...
- # %users ALL=(SHUTDOWN) NOPASSWD: ALL
- %users ALL=(ALL) ALL, NOPASSWD: SHUTDOWN, SYSTEM
|