Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ su(1) — Ultrix-11 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

csh(1)

newgrp(1)

sh(1)

su(1)

NAME

su − substitute user id temporarily

SYNTAX

su [ − ] [ user ]

DESCRIPTION

The su command prompts for the user password.  Then, if it is given, su changes your user ID to that of user and invokes a shell without changing the current directory or the user environment.  The new user ID stays in force until you exit this shell.  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 user 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

SEE ALSO

csh(1), newgrp(1), sh(1)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026