Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. ## sudoers file.
  2. ##
  3. ## This file MUST be edited with the 'visudo' command as root.
  4. ## Failure to use 'visudo' may result in syntax or file permission errors
  5. ## that prevent sudo from running.
  6. ##
  7. ## See the sudoers man page for the details on how to write a sudoers file.
  8. ##
  9.  
  10. ##
  11. ## Host alias specification
  12. ##
  13. ## Groups of machines. These may include host names (optionally with wildcards),
  14. ## IP addresses, network numbers or netgroups.
  15. # Host_Alias WEBSERVERS = www1, www2, www3
  16.  
  17. ##
  18. ## User alias specification
  19. ##
  20. ## Groups of users. These may consist of user names, uids, Unix groups,
  21. ## or netgroups.
  22. # User_Alias ADMINS = millert, dowdy, mikef
  23.  
  24. ##
  25. ## Cmnd alias specification
  26. ##
  27. ## Groups of commands. Often used to group related commands together.
  28. # Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
  29. # /usr/bin/pkill, /usr/bin/top
  30. # Cmnd_Alias REBOOT = /sbin/halt, /sbin/reboot, /sbin/poweroff
  31.  
  32. ##
  33. ## Defaults specification
  34. ##
  35. ## You may wish to keep some of the following environment variables
  36. ## when running commands via sudo.
  37. ##
  38. ## Locale settings
  39. # Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
  40. ##
  41. ## Run X applications through sudo; HOME is used to find the
  42. ## .Xauthority file. Note that other programs use HOME to find
  43. ## configuration files and this may lead to privilege escalation!
  44. # Defaults env_keep += "HOME"
  45. ##
  46. ## X11 resource path settings
  47. # Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
  48. ##
  49. ## Desktop path settings
  50. # Defaults env_keep += "QTDIR KDEDIR"
  51. ##
  52. ## Allow sudo-run commands to inherit the callers' ConsoleKit session
  53. # Defaults env_keep += "XDG_SESSION_COOKIE"
  54. ##
  55. ## Uncomment to enable special input methods. Care should be taken as
  56. ## this may allow users to subvert the command being run via sudo.
  57. # Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
  58. ##
  59. ## Uncomment to enable logging of a command's output, except for
  60. ## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
  61. # Defaults log_output
  62. # Defaults!/usr/bin/sudoreplay !log_output
  63. # Defaults!/usr/local/bin/sudoreplay !log_output
  64. # Defaults!REBOOT !log_output
  65.  
  66. ##
  67. ## Runas alias specification
  68. ##
  69.  
  70. ##
  71. ## User privilege specification
  72. ##
  73. root ALL=(ALL) ALL
  74.  
  75. ## Uncomment to allow members of group wheel to execute any command
  76. %wheel ALL=(ALL) ALL
  77.  
  78. ## Same thing without a password
  79. # %wheel ALL=(ALL) NOPASSWD: ALL
  80.  
  81. ## Uncomment to allow members of group sudo to execute any command
  82. # %sudo ALL=(ALL) ALL
  83.  
  84. ## Uncomment to allow any user to run sudo if they know the password
  85. ## of the user they are running the command as (root by default).
  86. # Defaults targetpw # Ask for the password of the target user
  87. # ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
  88.  
  89. ## Read drop-in files from /etc/sudoers.d
  90. ## (the '#' here does not indicate a comment)
  91. #includedir /etc/sudoers.d
  92.  
  93. BillyBoB ALL=NOPASSWD: /usr/local/bin/decbrightness
  94. BillyBoB ALL=NOPASSWD: /usr/local/bin/incbrightness
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement