home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / sudo / examples / sudoers
Encoding:
Text File  |  2006-08-23  |  1005 b   |  37 lines

  1. # sudoers file.
  2. #
  3. # This file MUST be edited with the 'visudo' command as root.
  4. # 'visudo' edits the suoders file in a safe fashion. visudo
  5. # locks the sudoers file against multiple simultaneous edits,
  6. # provides basic sanity checks, and checks for syntax errors. If
  7. # the sudoers file is currently being edited you will receive a 
  8. # message to try again later.
  9. #
  10. # See the sudoers man page for the details on how to write a sudoers file.
  11. #
  12.  
  13. # Defaults syslog=auth, secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"
  14.  
  15. # Host alias specification
  16.  
  17. # User alias specification
  18.  
  19. # Cmnd alias specification
  20.  
  21. # Defaults specification
  22.  
  23. # Runas alias specification
  24.  
  25. # User privilege specification
  26. root    ALL=(ALL) ALL
  27.  
  28. # Uncomment to allow people in group wheel to run all commands
  29. # %wheel    ALL=(ALL)    ALL
  30.  
  31. # Same thing without a password
  32. # %wheel    ALL=(ALL)    NOPASSWD: ALL
  33.  
  34. # Samples
  35. # %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
  36. # %users  localhost=/sbin/shutdown -h now
  37.