su-rs1
Run a shell or command as another user
Usage
su options
[-]
[<user>
[<argument> ...]]
Options
-
-ccommand,--command=command -
Pass a single command to the shell with
-c.
-
-ggroup,--group=group -
Specify the primary group
-
-Ggroup,--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 -
Ignored for backwards compatibility. This version of su always creates a new pseudo-terminal if it is attached to a TTY
-
-wlist,--whitelist-environment=list -
Do not reset the environment variables specified by the list. Multiple variables can be separated by commas
-
-sshell,--shell=shell -
Run shell if
/etc/shellsallows running as that shell instead of the default shell for the user
-
-V,--version -
Show the program version
Releases
2 releases since Debian 13 (Trixie); the text changed 1 time.