]> granicus.if.org Git - sudo/commitdiff
Add simple examples from OpenBSD (Marc Espie)
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 15 Dec 2001 05:44:06 +0000 (05:44 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 15 Dec 2001 05:44:06 +0000 (05:44 +0000)
sudoers

diff --git a/sudoers b/sudoers
index f49eb49ddbc1dc52ffb8d949fbc29a6d473292b4..5d67cfd89263c56477a708fa0d6932b2cf132c6f 100644 (file)
--- a/sudoers
+++ b/sudoers
 
 # User privilege specification
 root   ALL=(ALL) ALL
+
+# 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
+