1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| # sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
User_Alias GROUP_USER = kacedda
# Cmnd alias specification
Cmnd_Alias MOUNT = /bin/mount /mnt/cdrom, /bin/umount /mnt/cdrom
Cmnd_Alias REBOOT = /usr/sbin/reboot
Cmnd_Alias SHUTDOWN = /usr/sbin/shutdown
# Defaults specification
# User privilege specification
root ALL=(ALL) ALL
GROUP_USER ALL = MOUNT,REBOOT,SHUTDOWN
# 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 |