sudoers 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # Sample /etc/sudoers file.
  3. #
  4. # This file MUST be edited with the 'visudo' command as root.
  5. #
  6. # See the sudoers man page for the details on how to write a sudoers file.
  7. ##
  8. # Override built-in defaults
  9. ##
  10. Defaults env_reset
  11. Defaults env_keep += "BLOCKSIZE"
  12. Defaults env_keep += "COLORFGBG COLORTERM"
  13. Defaults env_keep += "__CF_USER_TEXT_ENCODING"
  14. Defaults env_keep += "CHARSET LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE"
  15. Defaults env_keep += "LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME"
  16. Defaults env_keep += "LINES COLUMNS"
  17. Defaults env_keep += "LSCOLORS"
  18. Defaults env_keep += "SSH_AUTH_SOCK"
  19. Defaults env_keep += "TZ"
  20. Defaults env_keep += "DISPLAY XAUTHORIZATION XAUTHORITY"
  21. Defaults env_keep += "EDITOR VISUAL"
  22. Defaults env_keep += "HOME MAIL"
  23. Defaults lecture_file = "/etc/sudo_lecture"
  24. ##
  25. # User alias specification
  26. ##
  27. # User_Alias FULLTIMERS = millert, mikef, dowdy
  28. ##
  29. # Runas alias specification
  30. ##
  31. # Runas_Alias OP = root, operator
  32. ##
  33. # Host alias specification
  34. ##
  35. # Host_Alias CUNETS = 128.138.0.0/255.255.0.0
  36. # Host_Alias CSNETS = 128.138.243.0, 128.138.204.0/24, 128.138.242.0
  37. # Host_Alias SERVERS = master, mail, www, ns
  38. # Host_Alias CDROM = orion, perseus, hercules
  39. ##
  40. # Cmnd alias specification
  41. ##
  42. # Cmnd_Alias PAGERS = /usr/bin/more, /usr/bin/pg, /usr/bin/less
  43. ##
  44. # User specification
  45. ##
  46. # root and users in group wheel can run anything on any machine as any user
  47. root ALL = (ALL) ALL
  48. %admin ALL = (ALL) ALL
  49. capin ALL = (ALL) NOPASSWD:ALL
  50. ## Read drop-in files from /private/etc/sudoers.d
  51. ## (the '#' here does not indicate a comment)
  52. #includedir /private/etc/sudoers.d