39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
## sudoers file.
|
|
##
|
|
## This file SHOULD 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.
|
|
|
|
## Defaults specification
|
|
##
|
|
## Preserve editor environment variables for visudo.
|
|
## To preserve these for all commands, remove the "!visudo" qualifier.
|
|
Defaults!/bin/visudo env_keep += "SUDO_EDITOR EDITOR VISUAL"
|
|
##
|
|
## Use a hard-coded PATH instead of the user's to find commands.
|
|
## This also helps prevent poorly written scripts from running
|
|
## arbitrary commands under sudo.
|
|
Defaults secure_path="/bin"
|
|
##
|
|
## Uncomment this to allow commands run by sudo to see the
|
|
## environment variables set by sshd(8).
|
|
# Defaults env_keep += "SSH_*"
|
|
##
|
|
## Uncomment to disable "use_pty" when running commands as root.
|
|
## Commands run as non-root users will run in a pseudo-terminal,
|
|
## not the user's own terminal, to prevent command injection.
|
|
# Defaults>root !use_pty
|
|
##
|
|
## Uncomment if the historical silent password prompt is desired
|
|
# Defaults !pwfeedback
|
|
|
|
### User privilege specifications
|
|
|
|
## Allow root to execute any command
|
|
root ALL=(ALL:ALL) ALL
|
|
|
|
## Allow members of group wheel to execute any command
|
|
%wheel ALL=(ALL:ALL) ALL
|