1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
---
title: SU(1) sudo-rs 0.2.5 | sudo-rs
---
# NAME
`su` - run a shell or command as another user
# SYNOPSIS
`su` [options] [-] [<*user*> [<*argument*>...]]
# OPTIONS
`-c` *command*, `--command`=*command*
: Pass a single command to the shell with `-c`.
`-g` *group*, `--group`=*group*
: Specify the primary group
`-G` *group*, `--supp-group`=*group*
: Specify a supplemental group
`-h`, `--help`
: Show a help message.
`-`, `-l`, `--login`
: Make the shell a login shell
`-m`, `-p`, `--preserve-environment`
: Do not reset environment variables
`-P`, `--pty`
: Create a new pseudo-terminal when running the shell.
`-w` *list*, `--whitelist-environment`=*list*
: Do not reset the environment variables specified by the *list*. Multiple
variables can be separated by commas.
`-s` *shell*, `--shell`=*shell*
: Run *shell* if `/etc/shells` allows running as that shell instead of the
default shell for the user.
`-V`, `--version`
: Show the program version.
# SEE ALSO
[sudo(8)](sudo.8.md)
|