Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ su(1) — OSF/1 X2.0-8 MIPS

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

csh(1)

ksh(1)

sh(1)

su(1)  —  Commands

OSF

NAME

su − Substitutes user ID temporarily

SYNOPSIS

su [−f] | [−] [user]

The su command demands the password of the specified user, and if it is given, changes to that user and invokes the user’s shell without changing the current directory. 

DESCRIPTION

The user environment is unchanged except for HOME and SHELL, which are taken from the password file for the user being substituted (see environ). The new user ID stays in force until the shell exits. 

If no user is specified, root is assumed. Only users who belong to group number 0 (zero) can issue su to become root, even with the root password. To remind superusers of their responsibilities, the shell substitutes a # (number sign) for its usual prompt. 

FLAGS

−fPrevents the user’s shell initialization file from being executed by passing the −f option to the user’s shell, thus making su start up faster. 

−Simulates a full login by executing the commands in either the .cshrc and .login files for csh or the .profile file for sh and ksh and by setting the current working directory to the user’s home directory. 

RELATED INFORMATION

Commands: csh(1), ksh(1), sh(1). 

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