version 1.28, 2016/06/27 15:47:38 |
version 1.29, 2016/06/27 17:36:33 |
|
|
.Ev USER |
.Ev USER |
and |
and |
.Ev USERNAME . |
.Ev USERNAME . |
.It Ic setenv { Oo Ar variable ... Oc Ic Oo Ar variable=value ... Oc Ic } |
.It Ic setenv { Oo Ar variable ... Oc Oo Ar variable=value ... Oc Ic } |
In addition to the variables mentioned above, keep the space-separated |
In addition to the variables mentioned above, keep the space-separated |
specified variables. |
specified variables. |
Variables may also be removed with a leading - or set using the latter syntax. |
Variables may also be removed with a leading |
|
.Sq - |
|
or set using the latter syntax. |
If the first character of |
If the first character of |
.Ar value |
.Ar value |
is a |
is a |
|
|
it is not considered a keyword. |
it is not considered a keyword. |
.El |
.El |
.Sh EXAMPLES |
.Sh EXAMPLES |
The following example permits users in group wsrc to build ports, |
The following example permits users in group wsrc to build ports; |
wheel to execute commands as any user while keeping the environment |
wheel to execute commands as any user while keeping the environment |
variables |
variables |
.Ev PS1 |
.Ev PS1 |
|
|
.Ev SSH_AUTH_SOCK |
.Ev SSH_AUTH_SOCK |
and |
and |
unsetting |
unsetting |
.Ev ENV , |
.Ev ENV ; |
permits tedu to run procmap as root without a password, |
permits tedu to run procmap as root without a password; |
and additionally permits root to run unrestricted commands as itself. |
and additionally permits root to run unrestricted commands as itself. |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
# Non-exhaustive list of variables needed to |
# Non-exhaustive list of variables needed to |