All pastes #751854 Raw Edit

Something

public text v1 · immutable
#751854 ·published 2007-10-27 20:01 UTC
rendered paste body
# 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

# Cmnd alias specification
Cmnd_Alias      ADM = /usr/bin/find *, /usr/local/bin/nmap *
Cmnd_Alias      ADM2 = /sbin/ipfw *
Cmnd_Alias      ADM3 = /usr/sbin/apachectl *
Cmnd_Alias      ADM4 = /Users/jan/tmp/thanx.sh


# Defaults specification

# Runas alias specification

# User privilege specification
root    ALL=(ALL) ALL
%admin  ALL=(ALL) ALL

jan     ALL = NOPASSWD : ADM, ADM2, ADM3, ADM4

# 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