Advertisement
sergio_educacionit

sudoers

Nov 28th, 2023
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. Defaults env_reset
  2. Defaults mail_badpass
  3. Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  4. Cmnd_Alias APACHE2SYSDADMIN = /usr/bin/systemctl start apache2, \
  5. /usr/bin/systemctl restart apache2, \
  6. /usr/bin/systemctl reload apache2, \
  7. /usr/bin/systemctl status apache2, \
  8. /usr/bin/journalctl --no-pager -u apache2
  9. Cmnd_Alias APACHE2SRVDADMIN = /usr/bin/systemctl stop apache2, \
  10. /usr/bin/systemctl disable apache2, \
  11. /usr/bin/journalctl -u apache2*, \
  12. /usr/bin/vim /etc/apache2/*, \
  13. /usr/sbin/apache2ctl*, \
  14. /usr/sbin/a2en*
  15. root ALL=(ALL:ALL) ALL
  16. educacionit ALL=(ALL) ALL
  17. %apachesystemdadmin ALL=(root) APACHE2SYSDADMIN
  18. %apacheserveradmin ALL=(root) APACHE2SYSDADMIN, APACHE2SRVDADMIN
  19. %sudo ALL=(ALL:ALL) ALL
  20. @includedir /etc/sudoers.d
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement