Skip to content

Commit c853deb

Browse files
committed
update docs and add 'man sudoers'
1 parent 6bfe6b7 commit c853deb

File tree

4 files changed

+478
-5
lines changed

4 files changed

+478
-5
lines changed

docs/man/sudo.8.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: SUDO(8) sudo-rs 0.2.4 | sudo-rs
88

99
# SYNOPSIS
1010

11-
`sudo` [`-u` *user*] [`-g` *group*] [`-D` *directory*] [`-knS`] [`-i` | `-s`] [<*command*>] \
11+
`sudo` [`-u` *user*] [`-g` *group*] [`-D` *directory*] [`-knS`] [`-i` | `-s`] [`VAR=value`] [<*command*>] \
1212
`sudo` `-h` | `-K` | `-k` | `-V`
1313

1414
# DESCRIPTION
@@ -74,8 +74,7 @@ even if that process runs in its own pseudo terminal.
7474
`-s`, `--shell`
7575
: Run the shell specified by the `SHELL` environment variable. If no shell
7676
was specified, the shell from the user's password database entry will be
77-
used instead. If a *command* is specified, it is passed to the shell using
78-
the `-c` option.
77+
used instead. If a *command* is specified, it is passed to the shell using the `-c` option.
7978

8079
`-u` *user*, `--user`=*user*
8180
: Run the *command* as another user than the default (**root**).
@@ -90,6 +89,10 @@ even if that process runs in its own pseudo terminal.
9089
`--`
9190
: Indicates the end of the sudo-rs options and start of the *command*.
9291

92+
Environment variables to be set for the command may be passed on the command line in the form of VAR=value. Variables passed on the command line are subject to restrictions imposed by the security policy.
93+
Variables passed on the command line are subject to the same restrictions as normal environment variables with one important exception: If the command to be run has the SETENV tag set or the command matched is ALL,
94+
the user may set variables that would otherwise be forbidden. See [sudoers(5)](sudoers.5.md) for more information.
95+
9396
# SEE ALSO
9497

95-
[su(1)](su.1.md), sudoers(5), [visudo(8)](visudo.8.md)
98+
[su(1)](su.1.md), [sudoers(5)](sudoers.5.md), [visudo(8)](visudo.8.md)

0 commit comments

Comments
 (0)