summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTavis Ormandy <taviso@gentoo.org>2005-06-09 09:10:19 +0000
committerTavis Ormandy <taviso@gentoo.org>2005-06-09 09:10:19 +0000
commitca454d5d184ca1acabb677a4e73318c3b20a698b (patch)
tree207b0a9b079216e0db120c6f6e81f28a1e74d113 /app-admin/sudo/files
parentAdded to ~ppc (diff)
downloadgentoo-2-ca454d5d184ca1acabb677a4e73318c3b20a698b.tar.gz
gentoo-2-ca454d5d184ca1acabb677a4e73318c3b20a698b.tar.bz2
gentoo-2-ca454d5d184ca1acabb677a4e73318c3b20a698b.zip
add examples
(Portage version: 2.0.51.19)
Diffstat (limited to 'app-admin/sudo/files')
-rw-r--r--app-admin/sudo/files/sudoers7
1 files changed, 7 insertions, 0 deletions
diff --git a/app-admin/sudo/files/sudoers b/app-admin/sudo/files/sudoers
index 923472b93468..4642d501724b 100644
--- a/app-admin/sudo/files/sudoers
+++ b/app-admin/sudo/files/sudoers
@@ -25,6 +25,9 @@ Defaults env_reset
# Allow specific user to bypass env_delete for TERMCAP
# Defaults:user env_delete-=TERMCAP
+# Set default EDITOR to vi, and do not allow visudo to use EDITOR/VISUAL.
+# Defaults editor=/usr/bin/vim, !env_editor
+
# Runas alias specification
# *** REMEMBER ***************************************************
@@ -43,6 +46,10 @@ root ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
+# Users in group www are allowed to edit httpd.conf and ftpd.conf
+# using sudoedit, or sudo -e, without a password.
+# %www ALL=(ALL) NOPASSWD: sudoedit /etc/httpd.conf, /etc/ftpd.conf
+
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now