summaryrefslogtreecommitdiff
path: root/sudoers
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-08-01 18:58:56 +0000
committerJonas Smedegaard <dr@jones.dk>2002-08-01 18:58:56 +0000
commit21029029afce515ffa73e8cd0d14786bdf634c66 (patch)
tree23f3901cd40d33f5724d6b5ceb0ded3d8ccdff48 /sudoers
parent26891533a8084275333a6928c2355c15ebe5bf29 (diff)
sudoers: Allow everybody to unmount automounts (as suggested in autofs HOWTO).
Diffstat (limited to 'sudoers')
-rw-r--r--sudoers8
1 files changed, 5 insertions, 3 deletions
diff --git a/sudoers b/sudoers
index b4d5e55..bc0f995 100644
--- a/sudoers
+++ b/sudoers
@@ -4,6 +4,8 @@ User_Alias WEBUSERS=%webusers
User_Alias REALUSERS=%realusers
+Cmnd_Alias UNMOUNT=NOPASSWD:/usr/bin/killall -USR1 automount
+
Cmnd_Alias READLOG=/usr/local/sbin/showlog, \
/usr/local/sbin/showlog [a-zA-Z0-9]*, \
/usr/local/sbin/showlog [a-zA-Z0-9 ]*
@@ -29,8 +31,8 @@ Cmnd_Alias RESTART=/etc/init.d/bind reload, \
/usr/bin/cvs update -d, \
/usr/bin/cvs update
-WEBUSERS ALL=READLOG,!ROOTLOG
-REALUSERS ALL=READLOG,!ROOTLOG
-NOC ALL=READLOG,USERMOD,!ROOTMOD,RESTART
+WEBUSERS ALL=UNMOUNT,READLOG,!ROOTLOG
+REALUSERS ALL=UNMOUNT,READLOG,!ROOTLOG
+NOC ALL=UNMOUNT,READLOG,USERMOD,!ROOTMOD,RESTART
root ALL=(ALL) ALL