-1.7.2 June 15, 2009 1
+1.7.2p6 March 3, 2010 1
-1.7.2 June 15, 2009 2
+1.7.2p6 March 3, 2010 2
-1.7.2 June 15, 2009 3
+1.7.2p6 March 3, 2010 3
-1.7.2 June 15, 2009 4
+1.7.2p6 March 3, 2010 4
the _\bp_\ba_\bs_\bs_\bp_\br_\bo_\bm_\bp_\bt_\b__\bo_\bv_\be_\br_\br_\bi_\bd_\be flag is disabled in _\bs_\bu_\bd_\bo_\be_\br_\bs.
-S The -\b-S\bS (_\bs_\bt_\bd_\bi_\bn) option causes s\bsu\bud\bdo\bo to read the password from
- the standard input instead of the terminal device.
+ the standard input instead of the terminal device. The
+ password must be followed by a newline character.
-s [command]
The -\b-s\bs (_\bs_\bh_\be_\bl_\bl) option runs the shell specified by the _\bS_\bH_\bE_\bL_\bL
-v If given the -\b-v\bv (_\bv_\ba_\bl_\bi_\bd_\ba_\bt_\be) option, s\bsu\bud\bdo\bo will update the
user's timestamp, prompting for the user's password if
- necessary. This extends the s\bsu\bud\bdo\bo timeout for another 5
-1.7.2 June 15, 2009 5
+1.7.2p6 March 3, 2010 5
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
+ necessary. This extends the s\bsu\bud\bdo\bo timeout for another 5
minutes (or whatever the timeout is set to in _\bs_\bu_\bd_\bo_\be_\br_\bs) but
does not run a command.
environment variables that s\bsu\bud\bdo\bo allows or denies is contained in the
output of sudo -V when run as root.
- Note that the dynamic linker on most operating systems will remove
-1.7.2 June 15, 2009 6
+1.7.2p6 March 3, 2010 6
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
+ Note that the dynamic linker on most operating systems will remove
variables that can control dynamic linking from the environment of
setuid executables, including s\bsu\bud\bdo\bo. Depending on the operating system
this may include _RLD*, DYLD_*, LD_*, LDR_*, LIBPATH, SHLIB_PATH, and
HOME In -\b-s\bs or -\b-H\bH mode (or if sudo was configured with the
--enable-shell-sets-home option), set to homedir of the
- target user
-1.7.2 June 15, 2009 7
+1.7.2p6 March 3, 2010 7
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
+ target user
+
PATH Set to a sane value if the _\bs_\be_\bc_\bu_\br_\be_\b__\bp_\ba_\bt_\bh sudoers option
is set.
To edit the _\bi_\bn_\bd_\be_\bx_\b._\bh_\bt_\bm_\bl file as user www:
- $ sudo -u www vi ~www/htdocs/index.html
-
-1.7.2 June 15, 2009 8
+1.7.2p6 March 3, 2010 8
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
+ $ sudo -u www vi ~www/htdocs/index.html
+
To view system logs only accessible to root and users in the adm group:
$ sudo -g adm view /var/log/syslog
Running shell scripts via s\bsu\bud\bdo\bo can expose the same kernel bugs that
make setuid shell scripts unsafe on some operating systems (if your OS
- has a /dev/fd/ directory, setuid shell scripts are generally safe).
-
-1.7.2 June 15, 2009 9
+1.7.2p6 March 3, 2010 9
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
+ has a /dev/fd/ directory, setuid shell scripts are generally safe).
+
B\bBU\bUG\bGS\bS
If you feel you have found a bug in s\bsu\bud\bdo\bo, please submit a bug report at
http://www.sudo.ws/sudo/bugs/
-
-
-1.7.2 June 15, 2009 10
+1.7.2p6 March 3, 2010 10