Files @ r29:f2b665ecdc34
Branch filter:

Location: public/ws-vacation/lib/ws-vacation-sudo.in

ws
doc/index-template.txt: use jQuery to display screenshots as dialogs.
# Allow www user to run the vacation command as a user, but not as root
User_Alias WWWRUN = wwwrun,www-data
Runas_Alias NOTROOT = ALL,!root
Cmnd_Alias VACATION=/usr/bin/vacation *
Cmnd_Alias RM_FORWARD=/bin/rm -f /home/*/.forward
Cmnd_Alias CAT_FORWARD=@base_dir@/lib/write_to.sh /home/*/.forward
Cmnd_Alias CAT_VACATION_MSG=@base_dir@/lib/write_to.sh /home/*/.vacation.msg
WWWRUN ALL=(NOTROOT) NOPASSWD: VACATION 
WWWRUN ALL=(NOTROOT) NOPASSWD: RM_FORWARD
WWWRUN ALL=(NOTROOT) NOPASSWD: CAT_FORWARD
WWWRUN ALL=(NOTROOT) NOPASSWD: CAT_VACATION_MSG