# sudoers file. # # This file MUST be edited with the 'visudo' command as root. # # See the sudoers man page for the details on how to write a sudoers file. # # Host alias specification # User alias specification User_Alias PW_USERS = wpollock, rabaut, schatzow, blevins User_Alias QUOTA_USERS = wpollock, rabaut, schatzow, blevins # Cmnd alias specification Cmnd_Alias PW = /usr/bin/passwd -[ulS] [a-zA-Z]*, \ /usr/bin/passwd [a-zA-Z]*, \ !/usr/bin/passwd root, !/usr/bin/passwd wpollock, \ !/usr/bin/passwd -* root, !/usr/bin/passwd -* wpollock Cmnd_Alias QUOTA = /usr/bin/quota, /usr/sbin/repquota # Defaults specification # A bad idea: #Defaults:wpollock !authenticate # 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 PW_USERS YborStudent, YborStudent.hccfl.edu, localhost = PW QUOTA_USERS YborStudent, YborStudent.hccfl.edu, localhost = QUOTA # Dangerous: #wpollock YborStudent, YborStudent.hccfl.edu, localhost = /usr/sbin/visudo