1SU(1)                       General Commands Manual                      SU(1)
2
3
4

NAME

6       su - substitute user id temporarily
7

SYNOPSIS

9       su [ -f ] [ - ] [ userid ]
10

DESCRIPTION

12       Su  demands  the  password of the specified userid, and if it is given,
13       changes to that userid and invokes the Shell sh(1)  or  csh(1)  without
14       changing  the  current  directory.   The  user environment is unchanged
15       except for HOME and SHELL, which are taken from the password  file  for
16       the  user being substituted (see environ(7)).  The new user ID stays in
17       force until the Shell exits.
18
19       If no userid is specified, ``root'' is  assumed.   Only  users  in  the
20       ``wheel''  group (group 0) can su to ``root'', even with the root pass‐
21       word.  To remind the super-user of his responsibilities, the Shell sub‐
22       stitutes `#' for its usual prompt.
23
24       The -f option prevents csh(1) from executing the .cshrc file; thus mak‐
25       ing su start up faster.
26
27       The - option simulates a full login.
28

SEE ALSO

30       sh(1), csh(1)
31
32
33
343rd Berkeley Distribution         May 5, 1986                            SU(1)
Impressum