Advertisement
Joao_Frangossauros

Untitled

Mar 4th, 2021
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. ## Groups of commands. Often used to group related commands together.
  2. # Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
  3. # /usr/bin/pkill, /usr/bin/top
  4. # Cmnd_Alias REBOOT = /sbin/halt, /sbin/reboot, /sbin/poweroff
  5.  
  6. ##
  7. ## Defaults specification
  8. ##
  9. ## Prevent environment variables from influencing programs in an
  10. ## unexpected or harmful way (CVE-2005-2959, CVE-2005-4158, CVE-2006-0151)
  11. Defaults always_set_home
  12. ## Path that will be used for every command run from sudo
  13. Defaults secure_path="/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin:/usr/local/sbin"
  14. Defaults env_reset
  15. ## Change env_reset to !env_reset in previous line to keep all environment variables
  16. ## Following list will no longer be necessary after this change
  17. Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREM >
  18. ## Comment out the preceding line and uncomment the following one if you need
  19. ## to use special input methods. This may allow users to compromise the root
  20. ## account if they are allowed to run commands without authentication.
  21. #Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASURE >
  22.  
  23. ## Do not insult users when they enter an incorrect password.
  24. Defaults !insults
  25.  
  26. ## Uncomment to use a hard-coded PATH instead of the user's to find commands
  27. # Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  28. ##
  29. ## Uncomment to send mail if the user does not enter the correct password.
  30. # Defaults mail_badpass
  31. ##
  32. ## Uncomment to enable logging of a command's output, except for
  33. ## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
  34. # Defaults log_output
  35. # Defaults!/usr/bin/sudoreplay !log_output
  36. # Defaults!REBOOT !log_output
  37.  
  38. ## In the default (unconfigured) configuration, sudo asks for the root password.
  39. ## This allows use of an ordinary user account for administration of a freshly
  40. ## installed system. When configuring sudo, delete the two
  41. ## following lines:
  42. Defaults targetpw # ask for the password of the target user i.e. root
  43. ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!
  44.  
  45. ##
  46. ## Runas alias specification
  47. ##
  48.  
  49. ##
  50. ## User privilege specification
  51. ##
  52. root ALL=(ALL) ALL
  53. joaomns ALL=(ALL) ALL
  54.  
  55. ## Uncomment to allow members of group wheel to execute any command
  56. %wheel ALL=(ALL) ALL
  57.  
  58. ## Same thing without a password
  59. #%wheel ALL=(ALL) NOPASSWD: ALL
  60.  
  61. ## Read drop-in files from /etc/sudoers.d
  62. @includedir /etc/sudoers.d
  63.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement