Advertisement
tolikpunkoff

sudoers-example

Jan 10th, 2017
733
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 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.  
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement