| 1 |
.\" Automatically generated by Pandoc 3.6.3 |
| 2 |
.\" |
| 3 |
.TH "SU" "1" "" "sudo\-rs 0.2.14" "sudo\-rs" |
| 4 |
.SH NAME |
| 5 |
\f[CR]su\f[R] \- run a shell or command as another user |
| 6 |
.SH SYNOPSIS |
| 7 |
\f[CR]su\f[R] options [\-] [<\f[I]user\f[R]> |
| 8 |
[<\f[I]argument\f[R]>\&...]] |
| 9 |
.SH OPTIONS |
| 10 |
.TP |
| 11 |
\f[CR]\-c\f[R] \f[I]command\f[R], \f[CR]\-\-command\f[R]=\f[I]command\f[R] |
| 12 |
Pass a single command to the shell with \f[CR]\-c\f[R]. |
| 13 |
.TP |
| 14 |
\f[CR]\-g\f[R] \f[I]group\f[R], \f[CR]\-\-group\f[R]=\f[I]group\f[R] |
| 15 |
Specify the primary group |
| 16 |
.TP |
| 17 |
\f[CR]\-G\f[R] \f[I]group\f[R], \f[CR]\-\-supp\-group\f[R]=\f[I]group\f[R] |
| 18 |
Specify a supplemental group |
| 19 |
.TP |
| 20 |
\f[CR]\-h\f[R], \f[CR]\-\-help\f[R] |
| 21 |
Show a help message. |
| 22 |
.TP |
| 23 |
\f[CR]\-\f[R], \f[CR]\-l\f[R], \f[CR]\-\-login\f[R] |
| 24 |
Make the shell a login shell |
| 25 |
.TP |
| 26 |
\f[CR]\-m\f[R], \f[CR]\-p\f[R], \f[CR]\-\-preserve\-environment\f[R] |
| 27 |
Do not reset environment variables |
| 28 |
.TP |
| 29 |
\f[CR]\-P\f[R], \f[CR]\-\-pty\f[R] |
| 30 |
Ignored for backwards compatibility. |
| 31 |
This version of su always creates a new pseudo\-terminal if it is |
| 32 |
attached to a TTY |
| 33 |
.TP |
| 34 |
\f[CR]\-w\f[R] \f[I]list\f[R], \f[CR]\-\-whitelist\-environment\f[R]=\f[I]list\f[R] |
| 35 |
Do not reset the environment variables specified by the \f[I]list\f[R]. |
| 36 |
Multiple variables can be separated by commas |
| 37 |
.TP |
| 38 |
\f[CR]\-s\f[R] \f[I]shell\f[R], \f[CR]\-\-shell\f[R]=\f[I]shell\f[R] |
| 39 |
Run \f[I]shell\f[R] if \f[CR]/etc/shells\f[R] allows running as that |
| 40 |
shell instead of the default shell for the user |
| 41 |
.TP |
| 42 |
\f[CR]\-V\f[R], \f[CR]\-\-version\f[R] |
| 43 |
Show the program version |
| 44 |
.SH SEE ALSO |
| 45 |
sudo(8) |