man pages get built in the build- directories
[debian/sudo] / sudo.pod
1 Copyright (c) 1994-1996, 1998-2005, 2007-2008
2         Todd C. Miller <Todd.Miller@courtesan.com>
3
4 Permission to use, copy, modify, and distribute this software for any
5 purpose with or without fee is hereby granted, provided that the above
6 copyright notice and this permission notice appear in all copies.
7
8 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
16
17 Sponsored in part by the Defense Advanced Research Projects
18 Agency (DARPA) and Air Force Research Laboratory, Air Force
19 Materiel Command, USAF, under agreement number F39502-99-1-0512.
20
21 $Sudo: sudo.pod,v 1.120 2008/11/15 18:34:01 millert Exp $
22 =pod
23
24 =head1 NAME
25
26 sudo, sudoedit - execute a command as another user
27
28 =head1 SYNOPSIS
29
30 B<sudo> [B<-n>] B<-h> | B<-K> | B<-k> | B<-L> | B<-V> | B<-v>
31
32 B<sudo> B<-l[l]> [B<-AnS>] S<[B<-g> I<groupname>|I<#gid>]> S<[B<-U> I<username>]>
33 S<[B<-u> I<username>|I<#uid>]> [I<command>]
34
35 B<sudo> [B<-AbEHnPS>]
36 S<[B<-a> I<auth_type>]>
37 S<[B<-C> I<fd>]>
38 S<[B<-c> I<class>|I<->]>
39 S<[B<-g> I<groupname>|I<#gid>]> S<[B<-p> I<prompt>]>
40 S<[B<-r> I<role>]> S<[B<-t> I<type>]>
41 S<[B<-u> I<username>|I<#uid>]>
42 S<[B<VAR>=I<value>]> S<[B<-i> | B<-s>]> [I<command>]
43
44 B<sudoedit> [B<-AnS>]
45 S<[B<-a> I<auth_type>]>
46 S<[B<-C> I<fd>]>
47 S<[B<-c> I<class>|I<->]>
48 S<[B<-g> I<groupname>|I<#gid>]> S<[B<-p> I<prompt>]>
49 S<[B<-u> I<username>|I<#uid>]> file ...
50
51 =head1 DESCRIPTION
52
53 B<sudo> allows a permitted user to execute a I<command> as the
54 superuser or another user, as specified in the I<sudoers> file.
55 The real and effective uid and gid are set to match those of the
56 target user as specified in the passwd file and the group vector
57 is initialized based on the group file (unless the B<-P> option was
58 specified).  If the invoking user is root or if the target user is
59 the same as the invoking user, no password is required.  Otherwise,
60 B<sudo> requires that users authenticate themselves with a password
61 by default (NOTE: in the default configuration this is the user's
62 password, not the root password).  Once a user has been authenticated,
63 a timestamp is updated and the user may then use sudo without a
64 password for a short period of time (C<@timeout@> minutes unless
65 overridden in I<sudoers>).
66
67 When invoked as B<sudoedit>, the B<-e> option (described below),
68 is implied.
69
70 B<sudo> determines who is an authorized user by consulting the file
71 F<@sysconfdir@/sudoers>.  By running B<sudo> with the B<-v> option,
72 a user can update the time stamp without running a I<command>. The
73 password prompt itself will also time out if the user's password
74 is not entered within C<@password_timeout@> minutes (unless overridden
75 via I<sudoers>).
76
77 If a user who is not listed in the I<sudoers> file tries to run a
78 command via B<sudo>, mail is sent to the proper authorities, as
79 defined at configure time or in the I<sudoers> file (defaults to
80 C<@mailto@>).  Note that the mail will not be sent if an unauthorized
81 user tries to run sudo with the B<-l> or B<-v> option.  This allows
82 users to determine for themselves whether or not they are allowed
83 to use B<sudo>.
84
85 If B<sudo> is run by root and the C<SUDO_USER> environment variable
86 is set, B<sudo> will use this value to determine who the actual
87 user is.  This can be used by a user to log commands through sudo
88 even when a root shell has been invoked.  It also allows the B<-e>
89 option to remain useful even when being run via a sudo-run script or
90 program.  Note however, that the sudoers lookup is still done for
91 root, not the user specified by C<SUDO_USER>.
92
93 B<sudo> can log both successful and unsuccessful attempts (as well
94 as errors) to syslog(3), a log file, or both.  By default B<sudo>
95 will log via syslog(3) but this is changeable at configure time
96 or via the I<sudoers> file.
97
98 =head1 OPTIONS
99
100 B<sudo> accepts the following command line options:
101
102 =over 12
103
104 =item -A
105
106 Normally, if B<sudo> requires a password, it will read it from the
107 current terminal.  If the B<-A> (I<askpass>) option is specified,
108 a helper program is executed to read the user's password and output
109 the password to the standard output.  If the C<SUDO_ASKPASS>
110 environment variable is set, it specifies the path to the helper
111 program.  Otherwise, the value specified by the I<askpass> option
112 in L<sudoers(5)> is used.
113
114 =item -a I<type>
115
116 The B<-a> (I<authentication type>) option causes B<sudo> to use the
117 specified authentication type when validating the user, as allowed
118 by F</etc/login.conf>.  The system administrator may specify a list
119 of sudo-specific authentication methods by adding an "auth-sudo"
120 entry in F</etc/login.conf>.  This option is only available on systems
121 that support BSD authentication.
122
123 =item -b
124
125 The B<-b> (I<background>) option tells B<sudo> to run the given
126 command in the background.  Note that if you use the B<-b>
127 option you cannot use shell job control to manipulate the process.
128
129 =item -C I<fd>
130
131 Normally, B<sudo> will close all open file descriptors other than
132 standard input, standard output and standard error.  The B<-C>
133 (I<close from>) option allows the user to specify a starting point
134 above the standard error (file descriptor three).  Values less than
135 three are not permitted.  This option is only available if the
136 administrator has enabled the I<closefrom_override> option in
137 L<sudoers(5)>.
138
139 =item -c I<class>
140
141 The B<-c> (I<class>) option causes B<sudo> to run the specified command
142 with resources limited by the specified login class.  The I<class>
143 argument can be either a class name as defined in F</etc/login.conf>,
144 or a single '-' character.  Specifying a I<class> of C<-> indicates
145 that the command should be run restricted by the default login
146 capabilities for the user the command is run as.  If the I<class>
147 argument specifies an existing user class, the command must be run
148 as root, or the B<sudo> command must be run from a shell that is already
149 root.  This option is only available on systems with BSD login classes.
150
151 =item -E
152
153 The B<-E> (I<preserve> I<environment>) option will override the
154 I<env_reset> option in L<sudoers(5)>).  It is only
155 available when either the matching command has the C<SETENV> tag
156 or the I<setenv> option is set in L<sudoers(5)>.
157
158 =item -e
159
160 The B<-e> (I<edit>) option indicates that, instead of running
161 a command, the user wishes to edit one or more files.  In lieu
162 of a command, the string "sudoedit" is used when consulting
163 the I<sudoers> file.  If the user is authorized by I<sudoers>
164 the following steps are taken:
165
166 =over 4
167
168 =item 1.
169
170 Temporary copies are made of the files to be edited with the owner
171 set to the invoking user.
172
173 =item 2.
174
175 The editor specified by the C<SUDO_EDITOR>, C<VISUAL> or C<EDITOR>
176 environment variables is run to edit the temporary files.  If none
177 of C<SUDO_EDITOR>, C<VISUAL> or C<EDITOR> are set, the first program
178 listed in the I<editor> I<sudoers> variable is used.
179
180 =item 3.
181
182 If they have been modified, the temporary files are copied back to
183 their original location and the temporary versions are removed.
184
185 =back
186
187 If the specified file does not exist, it will be created.  Note
188 that unlike most commands run by B<sudo>, the editor is run with
189 the invoking user's environment unmodified.  If, for some reason,
190 B<sudo> is unable to update a file with its edited version, the
191 user will receive a warning and the edited copy will remain in a
192 temporary file.
193
194 =item -g I<group>
195
196 Normally, B<sudo> sets the primary group to the one specified by
197 the passwd database for the user the command is being run as (by
198 default, root).  The B<-g> (I<group>) option causes B<sudo> to run
199 the specified command with the primary group set to I<group>.  To
200 specify a I<gid> instead of a I<group name>, use I<#gid>.  When
201 running commands as a I<gid>, many shells require that the '#' be
202 escaped with a backslash ('\').  If no B<-u> option is specified,
203 the command will be run as the invoking user (not root).  In either
204 case, the primary group will be set to I<group>.
205
206 =item -H
207
208 The B<-H> (I<HOME>) option sets the C<HOME> environment variable
209 to the homedir of the target user (root by default) as specified
210 in passwd(5).  By default, B<sudo> does not modify C<HOME>
211 (see I<set_home> and I<always_set_home> in L<sudoers(5)>).
212
213 =item -h
214
215 The B<-h> (I<help>) option causes B<sudo> to print a usage message and exit.
216
217 =item -i [command]
218
219 The B<-i> (I<simulate initial login>) option runs the shell specified
220 in the L<passwd(5)> entry of the target user as a login shell.  This
221 means that login-specific resource files such as C<.profile> or
222 C<.login> will be read by the shell.  If a command is specified,
223 it is passed to the shell for execution.  Otherwise, an interactive
224 shell is executed.  B<sudo> attempts to change to that user's home
225 directory before running the shell.  It also initializes the
226 environment, leaving I<DISPLAY> and I<TERM> unchanged, setting
227 I<HOME>, I<SHELL>, I<USER>, I<LOGNAME>, and I<PATH>, as well as
228 the contents of F</etc/environment> on Linux and AIX systems.
229 All other environment variables are removed.
230
231 =item -K
232
233 The B<-K> (sure I<kill>) option is like B<-k> except that it removes
234 the user's timestamp entirely.  Like B<-k>, this option does not
235 require a password.
236
237 =item -k
238
239 The B<-k> (I<kill>) option to B<sudo> invalidates the user's timestamp
240 by setting the time on it to the Epoch.  The next time B<sudo> is
241 run a password will be required.  This option does not require a password
242 and was added to allow a user to revoke B<sudo> permissions from a .logout
243 file.
244
245 =item -L
246
247 The B<-L> (I<list> defaults) option will list out the parameters
248 that may be set in a I<Defaults> line along with a short description
249 for each.  This option is useful in conjunction with L<grep(1)>.
250
251 =item -l[l] [I<command>]
252
253 If no I<command> is specified, the B<-l> (I<list>) option will list
254 the allowed (and forbidden) commands for the invoking user (or the
255 user specified by the B<-U> option) on the current host.  If a
256 I<command> is specified and is permitted by I<sudoers>, the
257 fully-qualified path to the command is displayed along with any
258 command line arguments.  If I<command> is specified but not allowed,
259 B<sudo> will exit with a status value of 1.  If the B<-l> option is
260 specified with an B<l> argument (i.e. B<-ll>), or if B<-l>
261 is specified multiple times, a longer list format is used.
262
263 =item -n
264
265 The B<-n> (I<non-interactive>) option prevents B<sudo> from prompting
266 the user for a password.  If a password is required for the command
267 to run, B<sudo> will display an error messages and exit.
268
269 =item -P
270
271 The B<-P> (I<preserve> I<group vector>) option causes B<sudo> to
272 preserve the invoking user's group vector unaltered.  By default,
273 B<sudo> will initialize the group vector to the list of groups the
274 target user is in.  The real and effective group IDs, however, are
275 still set to match the target user.
276
277 =item -p I<prompt>
278
279 The B<-p> (I<prompt>) option allows you to override the default
280 password prompt and use a custom one.  The following percent (`C<%>')
281 escapes are supported:
282
283 =over 4
284
285 =item C<%H>
286
287 expanded to the local hostname including the domain name
288 (on if the machine's hostname is fully qualified or the I<fqdn>
289 I<sudoers> option is set)
290
291 =item C<%h>
292
293 expanded to the local hostname without the domain name
294
295 =item C<%p>
296
297 expanded to the user whose password is being asked for (respects the
298 I<rootpw>, I<targetpw> and I<runaspw> flags in I<sudoers>)
299
300 =item C<%U>
301
302 expanded to the login name of the user the command will
303 be run as (defaults to root)
304
305 =item C<%u>
306
307 expanded to the invoking user's login name
308
309 =item C<%%>
310
311 two consecutive C<%> characters are collapsed into a single C<%> character
312
313 =back
314
315 The prompt specified by the B<-p> option will override the system
316 password prompt on systems that support PAM unless the
317 I<passprompt_override> flag is disabled in I<sudoers>.
318
319 =item -r I<role>
320
321 The B<-r> (I<role>) option causes the new (SELinux) security context to 
322 have the role specified by I<role>.
323
324 =item -S
325
326 The B<-S> (I<stdin>) option causes B<sudo> to read the password from
327 the standard input instead of the terminal device.
328
329 =item -s [command]
330
331 The B<-s> (I<shell>) option runs the shell specified by the I<SHELL>
332 environment variable if it is set or the shell as specified in
333 L<passwd(5)>.  If a command is specified, it is passed to the shell
334 for execution.  Otherwise, an interactive shell is executed.
335
336 =item -t I<type>
337
338 The B<-t> (I<type>) option causes the new (SELinux) security context to 
339 have the type specified by I<type>.  If no type is specified, the default
340 type is derived from the specified role.
341
342 =item -U I<user>
343
344 The B<-U> (I<other user>) option is used in conjunction with the B<-l>
345 option to specify the user whose privileges should be listed.  Only
346 root or a user with B<sudo> C<ALL> on the current host may use this
347 option.
348
349 =item -u I<user>
350
351 The B<-u> (I<user>) option causes B<sudo> to run the specified
352 command as a user other than I<root>.  To specify a I<uid> instead
353 of a I<user name>, use I<#uid>.  When running commands as a I<uid>,
354 many shells require that the '#' be escaped with a backslash ('\').
355 Note that if the I<targetpw> Defaults option is set (see L<sudoers(5)>)
356 it is not possible to run commands with a uid not listed in the
357 password database.
358
359 =item -V
360
361 The B<-V> (I<version>) option causes B<sudo> to print the version
362 number and exit.  If the invoking user is already root the B<-V>
363 option will print out a list of the defaults B<sudo> was compiled
364 with as well as the machine's local network addresses.
365
366 =item -v
367
368 If given the B<-v> (I<validate>) option, B<sudo> will update the
369 user's timestamp, prompting for the user's password if necessary.
370 This extends the B<sudo> timeout for another C<@timeout@> minutes
371 (or whatever the timeout is set to in I<sudoers>) but does not run
372 a command.
373
374 =item --
375
376 The B<--> option indicates that B<sudo> should stop processing command
377 line arguments.  It is most useful in conjunction with the B<-s> option.
378
379 =back
380
381 Environment variables to be set for the command may also be passed
382 on the command line in the form of B<VAR>=I<value>, e.g.
383 B<LD_LIBRARY_PATH>=I</usr/local/pkg/lib>.  Variables passed on the
384 command line are subject to the same restrictions as normal environment
385 variables with one important exception.  If the I<setenv> option
386 is set in I<sudoers>, the command to be run has the C<SETENV> tag
387 set or the command matched is C<ALL>, the user may set variables
388 that would overwise be forbidden.  See L<sudoers(5)> for more information.
389
390 =head1 RETURN VALUES
391
392 Upon successful execution of a program, the exit status from B<sudo>
393 will simply be the exit status of the program that was executed.
394
395 Otherwise, B<sudo> quits with an exit value of 1 if there is a
396 configuration/permission problem or if B<sudo> cannot execute the
397 given command.  In the latter case the error string is printed to
398 stderr.  If B<sudo> cannot L<stat(2)> one or more entries in the user's
399 C<PATH> an error is printed on stderr.  (If the directory does not
400 exist or if it is not really a directory, the entry is ignored and
401 no error is printed.)  This should not happen under normal
402 circumstances.  The most common reason for L<stat(2)> to return
403 "permission denied" is if you are running an automounter and one
404 of the directories in your C<PATH> is on a machine that is currently
405 unreachable.
406
407 =head1 SECURITY NOTES
408
409 B<sudo> tries to be safe when executing external commands.
410
411 There are two distinct ways to deal with environment variables.
412 By default, the I<env_reset> I<sudoers> option is enabled.
413 This causes commands to be executed with a minimal environment
414 containing C<TERM>, C<PATH>, C<HOME>, C<SHELL>, C<LOGNAME>, C<USER>
415 and C<USERNAME> in addition to variables from the invoking process
416 permitted by the I<env_check> and I<env_keep> I<sudoers> options.
417 There is effectively a whitelist for environment variables.
418
419 If, however, the I<env_reset> option is disabled in I<sudoers>, any
420 variables not explicitly denied by the I<env_check> and I<env_delete>
421 options are inherited from the invoking process.  In this case,
422 I<env_check> and I<env_delete> behave like a blacklist.  Since it
423 is not possible to blacklist all potentially dangerous environment
424 variables, use of the default I<env_reset> behavior is encouraged.
425
426 In all cases, environment variables with a value beginning with
427 C<()> are removed as they could be interpreted as B<bash> functions.
428 The list of environment variables that B<sudo> allows or denies is
429 contained in the output of C<sudo -V> when run as root.
430
431 Note that the dynamic linker on most operating systems will remove
432 variables that can control dynamic linking from the environment of
433 setuid executables, including B<sudo>.  Depending on the operating
434 system this may include C<_RLD*>, C<DYLD_*>, C<LD_*>, C<LDR_*>,
435 C<LIBPATH>, C<SHLIB_PATH>, and others.  These type of variables are
436 removed from the environment before B<sudo> even begins execution
437 and, as such, it is not possible for B<sudo> to preserve them.
438
439 To prevent command spoofing, B<sudo> checks "." and "" (both denoting
440 current directory) last when searching for a command in the user's
441 PATH (if one or both are in the PATH).  Note, however, that the
442 C<PATH> environment variable is further modified in Debian because of
443 the use of the I<SECURE_PATH> build option.
444
445 B<sudo> will check the ownership of its timestamp directory
446 (F<@timedir@> by default) and ignore the directory's contents if
447 it is not owned by root or if it is writable by a user other than
448 root.  On systems that allow non-root users to give away files via
449 L<chown(2)>, if the timestamp directory is located in a directory
450 writable by anyone (e.g., F</tmp>), it is possible for a user to
451 create the timestamp directory before B<sudo> is run.  However,
452 because B<sudo> checks the ownership and mode of the directory and
453 its contents, the only damage that can be done is to "hide" files
454 by putting them in the timestamp dir.  This is unlikely to happen
455 since once the timestamp dir is owned by root and inaccessible by
456 any other user, the user placing files there would be unable to get
457 them back out.  To get around this issue you can use a directory
458 that is not world-writable for the timestamps (F</var/adm/sudo> for
459 instance) or create F<@timedir@> with the appropriate owner (root)
460 and permissions (0700) in the system startup files.
461
462 B<sudo> will not honor timestamps set far in the future.
463 Timestamps with a date greater than current_time + 2 * C<TIMEOUT>
464 will be ignored and sudo will log and complain.  This is done to
465 keep a user from creating his/her own timestamp with a bogus
466 date on systems that allow users to give away files.
467
468 Please note that B<sudo> will normally only log the command it
469 explicitly runs.  If a user runs a command such as C<sudo su> or
470 C<sudo sh>, subsequent commands run from that shell will I<not> be
471 logged, nor will B<sudo>'s access control affect them.  The same
472 is true for commands that offer shell escapes (including most
473 editors).  Because of this, care must be taken when giving users
474 access to commands via B<sudo> to verify that the command does not
475 inadvertently give the user an effective root shell.  For more
476 information, please see the C<PREVENTING SHELL ESCAPES> section in
477 L<sudoers(5)>.
478
479 =head1 ENVIRONMENT
480
481 B<sudo> utilizes the following environment variables:
482
483 =over 16
484
485 =item C<EDITOR>
486
487 Default editor to use in B<-e> (sudoedit) mode if neither C<SUDO_EDITOR>
488 nor C<VISUAL> is set
489
490 =item C<HOME>
491
492 In B<-s> or B<-H> mode (or if sudo was configured with the
493 --enable-shell-sets-home option), set to homedir of the target user
494
495 =item C<PATH>
496
497 Set to a sane value if the I<secure_path> sudoers option is set.
498
499 =item C<SHELL>
500
501 Used to determine shell to run with C<-s> option
502
503 =item C<SUDO_ASKPASS>
504
505 Specifies the path to a helper program used to read the password
506 if no terminal is available or if the C<-A> option is specified.
507
508 =item C<SUDO_COMMAND>
509
510 Set to the command run by sudo
511
512 =item C<SUDO_EDITOR>
513
514 Default editor to use in B<-e> (sudoedit) mode
515
516 =item C<SUDO_GID>
517
518 Set to the group ID of the user who invoked sudo
519
520 =item C<SUDO_PROMPT>
521
522 Used as the default password prompt
523
524 =item C<SUDO_PS1>
525
526 If set, C<PS1> will be set to its value for the program being run
527
528 =item C<SUDO_UID>
529
530 Set to the user ID of the user who invoked sudo
531
532 =item C<SUDO_USER>
533
534 Set to the login of the user who invoked sudo
535
536 =item C<USER>
537
538 Set to the target user (root unless the B<-u> option is specified)
539
540 =item C<VISUAL>
541
542 Default editor to use in B<-e> (sudoedit) mode if C<SUDO_EDITOR>
543 is not set
544
545 =back
546
547 =head1 FILES
548
549 =over 24
550
551 =item F<@sysconfdir@/sudoers>
552
553 List of who can run what
554
555 =item F<@timedir@>
556
557 Directory containing timestamps
558
559 =item F</etc/environment>
560
561 Initial environment for B<-i> mode on Linux and AIX
562
563 =back
564
565 =head1 EXAMPLES
566
567 Note: the following examples assume suitable L<sudoers(5)> entries.
568
569 To get a file listing of an unreadable directory:
570
571  $ sudo ls /usr/local/protected
572
573 To list the home directory of user yazza on a machine where the
574 file system holding ~yazza is not exported as root:
575
576  $ sudo -u yazza ls ~yazza
577
578 To edit the F<index.html> file as user www:
579
580  $ sudo -u www vi ~www/htdocs/index.html
581
582 To shutdown a machine:
583
584  $ sudo shutdown -r +15 "quick reboot"
585
586 To make a usage listing of the directories in the /home
587 partition.  Note that this runs the commands in a sub-shell
588 to make the C<cd> and file redirection work.
589
590  $ sudo sh -c "cd /home ; du -s * | sort -rn > USAGE"
591
592 =head1 SEE ALSO
593
594 L<grep(1)>, L<su(1)>, L<stat(2)>,
595 L<login_cap(3)>,
596 L<passwd(5)>, L<sudoers(5)>, L<visudo(8)>
597
598 The file /usr/share/doc/sudo/OPTIONS describes the options used for building
599 the Debian version of sudo, some of which change default behaviors documented
600 elsewhere in this document.
601
602 =head1 AUTHORS
603
604 Many people have worked on B<sudo> over the years; this
605 version consists of code written primarily by:
606
607         Todd C. Miller
608
609 See the HISTORY file in the B<sudo> distribution or visit
610 http://www.sudo.ws/sudo/history.html for a short history
611 of B<sudo>.
612
613 =head1 CAVEATS
614
615 There is no easy way to prevent a user from gaining a root shell
616 if that user is allowed to run arbitrary commands via B<sudo>.
617 Also, many programs (such as editors) allow the user to run commands
618 via shell escapes, thus avoiding B<sudo>'s checks.  However, on
619 most systems it is possible to prevent shell escapes with B<sudo>'s
620 I<noexec> functionality.  See the L<sudoers(5)> manual
621 for details.
622
623 It is not meaningful to run the C<cd> command directly via sudo, e.g.,
624
625  $ sudo cd /usr/local/protected
626
627 since when the command exits the parent process (your shell) will
628 still be the same.  Please see the EXAMPLES section for more information.
629
630 If users have sudo C<ALL> there is nothing to prevent them from
631 creating their own program that gives them a root shell regardless
632 of any '!' elements in the user specification.
633
634 Running shell scripts via B<sudo> can expose the same kernel bugs that
635 make setuid shell scripts unsafe on some operating systems (if your OS
636 has a /dev/fd/ directory, setuid shell scripts are generally safe).
637
638 =head1 BUGS
639
640 If you feel you have found a bug in B<sudo>, please submit a bug report
641 at http://www.sudo.ws/sudo/bugs/
642
643 =head1 SUPPORT
644
645 Limited free support is available via the sudo-users mailing list,
646 see http://www.sudo.ws/mailman/listinfo/sudo-users to subscribe or
647 search the archives.
648
649 =head1 DISCLAIMER
650
651 B<sudo> is provided ``AS IS'' and any express or implied warranties,
652 including, but not limited to, the implied warranties of merchantability
653 and fitness for a particular purpose are disclaimed.  See the LICENSE
654 file distributed with B<sudo> or http://www.sudo.ws/sudo/license.html
655 for complete details.