daily pastebin goal
21%
SHARE
TWEET

sudoers-example

tolikpunkoff Jan 10th, 2017 127 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
  8. Cmnd_Alias MODUTILS = /sbin/insmod usb-storage, /sbin/rmmod usb-storage, /sbin/modprobe usb-storage, /sbin/mount, /sbin/umount
  9.  
  10. Defaults env_reset
  11. Defaults editor=/usr/bin/mcedit, !env_editor
  12. Defaults timestamp_timeout=0,rootpw
  13. Defaults !secure_path
  14. Defaults insults
  15.  
  16. root ALL=(ALL) ALL
  17. %users ALL=(ALL) ALL
  18. %users ALL=NOPASSWD: /sbin/hwclock, /bin/date, /usr/local/sbin/network-restart, /etc/rc.d/rc.networkmanager restart
  19. %disk ALL=NOPASSWD: MODUTILS
  20. %powermanager ALL=NOPASSWD: /sbin/shutdown
  21.  
  22. ## Read drop-in files from /etc/sudoers.d
  23. ## (the '#' here does not indicate a comment)
  24. #includedir /etc/sudoers.d
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top