]> granicus.if.org Git - sudo/commitdiff
Remove fastboot/fasthalt (who still remembers these?) and add a minimal
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 May 2004 22:31:35 +0000 (22:31 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 May 2004 22:31:35 +0000 (22:31 +0000)
sudoedit example.

sudoers.pod

index 4596044fdfe9454aac049075aedbc802a5ba1f25..b555507623aa3254424efebb8e97f5c0592c7d08 100644 (file)
@@ -976,8 +976,8 @@ these are a bit contrived.  First, we define our I<aliases>:
  Cmnd_Alias    KILL = /usr/bin/kill
  Cmnd_Alias    PRINTING = /usr/sbin/lpc, /usr/bin/lprm
  Cmnd_Alias    SHUTDOWN = /usr/sbin/shutdown
- Cmnd_Alias    HALT = /usr/sbin/halt, /usr/sbin/fasthalt
- Cmnd_Alias    REBOOT = /usr/sbin/reboot, /usr/sbin/fastboot
+ Cmnd_Alias    HALT = /usr/sbin/halt
+ Cmnd_Alias    REBOOT = /usr/sbin/reboot
  Cmnd_Alias    SHELLS = /usr/bin/sh, /usr/bin/csh, /usr/bin/ksh, \
                         /usr/local/bin/tcsh, /usr/bin/rsh, \
                         /usr/local/bin/zsh
@@ -1034,8 +1034,8 @@ during matching.
 The user B<lisa> may run any command on any host in the I<CUNETS> alias
 (the class B network C<128.138.0.0>).
 
- operator      ALL = DUMPS, KILL, PRINTING, SHUTDOWN, HALT, REBOOT,\
-               /usr/oper/bin/
+ operator      ALL = DUMPS, KILL, SHUTDOWN, HALT, REBOOT, PRINTING,\
+               sudoedit /etc/printcap, /usr/oper/bin/
 
 The B<operator> user may run commands limited to simple maintenance.
 Here, those are commands related to backups, killing processes, the
@@ -1175,8 +1175,7 @@ Note that disabling shell escapes is not a panacea.  Programs running
 as root are still capable of many potentially hazardous operations
 (such as changing or overwriting files) that could lead to unintended
 privilege escalation.  In the specific case of an editor, a safer
-approach is to give the user permission to run the B<sudoedit>
-program.
+approach is to give the user permission to run B<sudoedit>.
 
 =head1 CAVEATS