Original author(s) | |
---|---|
Developer(s) | AT&T Bell Laboratories |
Initial release | November 3, 1971 |
Operating system | Unix and Unix-like |
Type | Command |
The Unix command su, which stands for 'substitute user'[1][2] (or historically 'superuser'[3][4]), is used by a computer user to execute commands with the privileges of another user account. When executed it invokes a shell without changing the current working directory or the user environment.
When the command is used without specifying the new user id as a command line argument, it defaults to using the superuser account (user id 0) of the system.
su - run a command with substitute user and group ID
su - substitute user id temporarily
su -- become privileged user... su allows one to become the super-user.
su: become super-user