# /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # See the man page for details on how to write a sudoers file. # Defaults env_reset # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL) ALL dave ALL=(ALL) ALL, NOPASSWD: /etc/init.d/apache2 start, /etc/init.d/apache2 stop, /etc/init.d/apache2 restart, /etc/init.d/mysql start, /etc/init.d/mysql stop, /etc/init.d/mysql restart # Allow members of group sudo to execute any command # (Note that later entries override this, so you might need to move # it further down) #%sudo ALL=(ALL) ALL # #includedir /etc/sudoers.d