SU(1) — USER COMMANDS
NAME
su − substitute user id temporarily
SYNOPSIS
su [ username ] [ −c command ]
DESCRIPTION
Su changes your login to that of the specified username. Su asks for the password, just as if you were logging in as username, and, if the password is given, changes to that username and invokes the shell specified in the password file for that username, without changing the current directory. The user environment is thus unchanged except for HOME and SHELL, which are taken from the password file for the user being substituted (see environ(5)). The new user ID stays in force until the shell exits.
If no username is specified, ‘root’ is assumed. To remind the super-user of his responsibilities, the Shell substitutes ‘#’ for its usual prompt.
OPTIONS
−c command
execute command after logging in as the new user.
SEE ALSO
Sun Release 1.1 — Last change: 8 March 1984