1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 00:54:57 +00:00
serenity/Base/usr/share/man/man1/su.md
kleines Filmröllchen afaea38be2 Base: Expand "See Also" sections of many manpages
This commit focuses on the CLI utilities.
2023-07-06 10:03:48 +01:00

680 B

Name

su - switch to another user

Synopsis

$ su [-] [user]
$ su [-] [user] [-c command]

Description

su: Switch to another user.

When called with no user-specified, su defaults to switch to the root user. Need to enter the password if the user switch to has one.

Options

  • -, -l, --login: Start the shell as it was a real login
  • -c, --command: Execute a command using /bin/sh instead of starting an interactive shell

Arguments

  • user: User to switch to (defaults to the user with UID 0)

Examples

Switch to root user

$ su

Switch to another user

$ su nona

See also