sudoers.Debian.bookworm 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #
  2. # This file MUST be edited with the 'visudo' command as root.
  3. #
  4. # Please consider adding local content in /etc/sudoers.d/ instead of
  5. # directly modifying this file.
  6. #
  7. # See the man page for details on how to write a sudoers file.
  8. #
  9. Defaults env_reset
  10. Defaults mail_badpass
  11. Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  12. # This fixes CVE-2005-4890 and possibly breaks some versions of kdesu
  13. # (#1011624, https://bugs.kde.org/show_bug.cgi?id=452532)
  14. Defaults use_pty
  15. # This preserves proxy settings from user environments of root
  16. # equivalent users (group sudo)
  17. #Defaults:%sudo env_keep += "http_proxy https_proxy ftp_proxy all_proxy no_proxy"
  18. # This allows running arbitrary commands, but so does ALL, and it means
  19. # different sudoers have their choice of editor respected.
  20. #Defaults:%sudo env_keep += "EDITOR"
  21. # Completely harmless preservation of a user preference.
  22. #Defaults:%sudo env_keep += "GREP_COLOR"
  23. # While you shouldn't normally run git as root, you need to with etckeeper
  24. #Defaults:%sudo env_keep += "GIT_AUTHOR_* GIT_COMMITTER_*"
  25. # Per-user preferences; root won't have sensible values for them.
  26. #Defaults:%sudo env_keep += "EMAIL DEBEMAIL DEBFULLNAME"
  27. # "sudo scp" or "sudo rsync" should be able to use your SSH agent.
  28. #Defaults:%sudo env_keep += "SSH_AGENT_PID SSH_AUTH_SOCK"
  29. # Ditto for GPG agent
  30. #Defaults:%sudo env_keep += "GPG_AGENT_INFO"
  31. # Host alias specification
  32. # User alias specification
  33. # Cmnd alias specification
  34. # User privilege specification
  35. root ALL=(ALL:ALL) ALL
  36. # Allow members of group sudo to execute any command
  37. %sudo ALL=(ALL:ALL) ALL
  38. # See sudoers(5) for more information on "@include" directives:
  39. @includedir /etc/sudoers.d