You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -74,8 +74,7 @@ even if that process runs in its own pseudo terminal.
74
74
`-s`, `--shell`
75
75
: Run the shell specified by the `SHELL` environment variable. If no shell
76
76
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.
79
78
80
79
`-u`*user*, `--user`=*user*
81
80
: Run the *command* as another user than the default (**root**).
@@ -90,6 +89,10 @@ even if that process runs in its own pseudo terminal.
90
89
`--`
91
90
: Indicates the end of the sudo-rs options and start of the *command*.
92
91
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.
0 commit comments