Scroll to navigation

() ()

NAME

su - run a shell or command as another user

SYNOPSIS

su options [-] [<user> [<argument>...]]

OPTIONS

Pass a single command to the shell with -c.
Specify the primary group
Specify a supplemental group
Show a help message.
-, -l, --login
Make the shell a login shell
Do not reset environment variables
Create a new pseudo-terminal when running the shell.
Do not reset the environment variables specified by the list. Multiple variables can be separated by commas.
Run shell if /etc/shells allows running as that shell instead of the default shell for the user.
Show the program version.

SEE ALSO

sudo(8)