Code:
# 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 ENSIM = apache # Cmnd alias specification Cmnd_Alias ENSIM_CMD = /usr/local/bin/AddVirtDomain # Defaults specification # User privilege specification root ALL=(ALL) ALL ENSIM ALL = ENSIM_CMD # 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
rootpw If set, sudo will prompt for the root password instead of the password of the invoking
user. This flag is off by default.
runaspw If set, sudo will prompt for the password of the user defined by the runas_default option
(defaults to root) instead of the password of the invoking user. This flag is off by
default.
targetpw If set, sudo will prompt for the password of the user specified by the -u flag (defaults
to root) instead of the password of the invoking user. This flag is off by default.
user. This flag is off by default.
runaspw If set, sudo will prompt for the password of the user defined by the runas_default option
(defaults to root) instead of the password of the invoking user. This flag is off by
default.
targetpw If set, sudo will prompt for the password of the user specified by the -u flag (defaults
to root) instead of the password of the invoking user. This flag is off by default.
Kommentar