Manual Page Result
0
Command: su | Section: 8 | Source: UNIX v10 | File: su.8
SU(8) System Manager's Manual SU(8)
NAME
su, setlog - substitute userid temporarily, become super-user
SYNOPSIS
/etc/su [ user ]
/etc/setlog logname command ...
DESCRIPTION
Su changes the userid to that of user (root by default) with groupid
and login shell determined from the password file. If the current
userid is not the super-user, the password for the new user is de-
manded. The userid stays in force until the new shell exits.
The current directory and environment are unchanged unless the new
userid is super-user, in which case the environment variables PS1 and
PATH, if present, are set to standard values (white space and
/bin:/usr/bin:/etc).
Setlog executes the specified command with login name logname. The en-
vironment is otherwise unchanged; in particular, the userid is not set.
Only the super-user may use this command.
SEE ALSO
sh(1), getuid(2), passwd(5)
SU(8)