-1.6.8 September 6, 2004 1
+1.6.8 September 8, 2004 1
-1.6.8 September 6, 2004 2
+1.6.8 September 8, 2004 2
receive a warning and the edited copy will remain in a
temporary file.
- Please note that the editor used must make its changes
- to the original file (really the original inode). If
- the editor makes changes to a temporary file and then
- just renames this to the original file name it will
- not work with s\bsu\bud\bdo\boe\bed\bdi\bit\bt.
-
-h The -\b-h\bh (_\bh_\be_\bl_\bp) option causes s\bsu\bud\bdo\bo to print a usage mes
sage and exit.
-i The -\b-i\bi (_\bs_\bi_\bm_\bu_\bl_\ba_\bt_\be _\bi_\bn_\bi_\bt_\bi_\ba_\bl _\bl_\bo_\bg_\bi_\bn) option runs the shell
specified in the passwd(4) entry of the user that the
command is being run as. The command name argument
+ given to the shell begins with a - to tell the shell
+ to run as a login shell. s\bsu\bud\bdo\bo attempts to change to
+ that user's home directory before running the shell.
+ It also initializes the environment, leaving _\bT_\bE_\bR_\bM
+ unchanged, setting _\bH_\bO_\bM_\bE, _\bS_\bH_\bE_\bL_\bL, _\bU_\bS_\bE_\bR, _\bL_\bO_\bG_\bN_\bA_\bM_\bE, and
+ _\bP_\bA_\bT_\bH, and unsetting all other environment variables.
-1.6.8 September 6, 2004 3
+1.6.8 September 8, 2004 3
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
- given to the shell begins with a - to tell the shell
- to run as a login shell. s\bsu\bud\bdo\bo attempts to change to
- that user's home directory before running the shell.
- It also initializes the environment, leaving _\bT_\bE_\bR_\bM
- unchanged, setting _\bH_\bO_\bM_\bE, _\bS_\bH_\bE_\bL_\bL, _\bU_\bS_\bE_\bR, _\bL_\bO_\bG_\bN_\bA_\bM_\bE, and
- _\bP_\bA_\bT_\bH, and unsetting all other environment variables.
Note that because the shell to use is determined
before the _\bs_\bu_\bd_\bo_\be_\br_\bs file is parsed, a _\br_\bu_\bn_\ba_\bs_\b__\bd_\be_\bf_\ba_\bu_\bl_\bt
setting in _\bs_\bu_\bd_\bo_\be_\br_\bs will specify the user to run the
the password database.
-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 pass
+ word if 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.
+
+ -- The -\b--\b- flag indicates that s\bsu\bud\bdo\bo should stop processing
-1.6.8 September 6, 2004 4
+1.6.8 September 8, 2004 4
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
- the user's timestamp, prompting for the user's pass
- word if 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.
-
- -- The -\b--\b- flag indicates that s\bsu\bud\bdo\bo should stop processing
command line arguments. It is most useful in conjunc
tion with the -\b-s\bs flag.
that s\bsu\bud\bdo\bo executes.
For security reasons, if your OS supports shared libraries
+ and does not disable user-defined library search paths for
+ setuid programs (most do), you should either use a linker
+ option that disables this behavior or link s\bsu\bud\bdo\bo stati
+ cally.
+ s\bsu\bud\bdo\bo will check the ownership of its timestamp directory
-1.6.8 September 6, 2004 5
+1.6.8 September 8, 2004 5
-SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
+SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
- and does not disable user-defined library search paths for
- setuid programs (most do), you should either use a linker
- option that disables this behavior or link s\bsu\bud\bdo\bo stati
- cally.
- s\bsu\bud\bdo\bo will check the ownership of its timestamp directory
(_\b/_\bv_\ba_\br_\b/_\br_\bu_\bn_\b/_\bs_\bu_\bd_\bo by default) and ignore the directory's con
tents if it is not owned by root and only writable by
root. On systems that allow non-root users to give away
PATH Set to a sane value if sudo was configured with
the --with-secure-path option
+ SHELL Used to determine shell to run with -s option
+ SUDO_PROMPT Used as the default password prompt
+ SUDO_COMMAND Set to the command run by sudo
-1.6.8 September 6, 2004 6
+1.6.8 September 8, 2004 6
-SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
- SHELL Used to determine shell to run with -s option
- SUDO_PROMPT Used as the default password prompt
+SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
- SUDO_COMMAND Set to the command run by sudo
SUDO_USER Set to the login of the user who invoked sudo
_\bg_\br_\be_\bp(1), _\bs_\bu(1), _\bs_\bt_\ba_\bt(2), _\bl_\bo_\bg_\bi_\bn_\b__\bc_\ba_\bp(3), sudoers(4),
passwd(4), visudo(1m)
+A\bAU\bUT\bTH\bHO\bOR\bRS\bS
+ Many people have worked on s\bsu\bud\bdo\bo over the years; this ver
+ sion consists of code written primarily by:
+
-1.6.8 September 6, 2004 7
+1.6.8 September 8, 2004 7
-SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
-A\bAU\bUT\bTH\bHO\bOR\bRS\bS
- Many people have worked on s\bsu\bud\bdo\bo over the years; this ver
- sion consists of code written primarily by:
+SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
+
Todd Miller
Chris Jepeway
archives.
D\bDI\bIS\bSC\bCL\bLA\bAI\bIM\bME\bER\bR
- S\bSu\bud\bdo\bo is provided ``AS IS'' and any express or implied
+ S\bSu\bud\bdo\bo is provided ``AS IS'' and any express or implied war
+ ranties, including, but not limited to, the implied war
+ ranties of merchantability and fitness for a particular
+ purpose are disclaimed. See the LICENSE file distributed
+ with s\bsu\bud\bdo\bo or http://www.sudo.ws/sudo/license.html for
-1.6.8 September 6, 2004 8
+1.6.8 September 8, 2004 8
SUDO(1m) MAINTENANCE COMMANDS SUDO(1m)
- warranties, including, but not limited to, the implied
- warranties of merchantability and fitness for a particular
- purpose are disclaimed. See the LICENSE file distributed
- with s\bsu\bud\bdo\bo or http://www.sudo.ws/sudo/license.html for com
- plete details.
+ complete details.
+
+
+
+
-1.6.8 September 6, 2004 9
+1.6.8 September 8, 2004 9