SU(1)
NAME
su − substitute user id temporarily
SYNTAX
su [ − ] [ userid ]
DESCRIPTION
Su demands the password of the specified userid, and if it is given, changes to that userid and invokes a shell without changing the current directory or the user environment. The new user ID stays in force until the shell exits. If the ’SHELL’ environment variable is set, it is used as the name of the new shell, and, if necessary, the previous user environment is restored for that shell. This allows for the use of multiple shells with su. If the optional - flag is given, the shell of the specified user will be the new shell, the environment is set as for that user, and the new shell is started in the new home directory. This can be used to simulate the login environment of a specified user.
If no userid is specified, ’root’ is assumed. If the file /usr/adm/sulog exists, records are kept there of all su attempts to the root id. To remind the superuser of his responsibilities, the shell substitutes ’#’ for its usual prompt.
FILES
/usr/adm/sulog