removed support for -r, -h, and rmail
[unix-history] / usr / src / usr.bin / su / su.1
... / ...
CommitLineData
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
5.\" @(#)su.1 6.2 (Berkeley) %G%
6.\"
7.TH SU 1 ""
8.UC
9.SH NAME
10su \- substitute user id temporarily
11.SH SYNOPSIS
12.B su
13[ \-f ] [ \- ] [ userid ]
14.SH DESCRIPTION
15.I Su
16demands the password of the specified
17.I userid,
18and if it is given,
19changes to that
20.I userid
21and invokes the Shell
22.IR sh (1)
23or
24.IR csh (1)
25without changing the current directory.
26The user environment
27is unchanged except for HOME and SHELL,
28which are taken from the password file
29for the user being substituted
30(see
31.IR environ (7)).
32The new user ID stays in force until the Shell exits.
33.PP
34If no
35.I userid
36is specified, ``root'' is assumed.
37Only users in the ``wheel'' group (group 0) can
38.I su
39to ``root'', even with the root password.
40To remind the super-user of his responsibilities,
41the Shell substitutes `#' for its usual prompt.
42.PP
43The
44.B \-f
45option prevents
46.IR csh (1)
47from executing the .cshrc file; thus making
48.I su
49start up faster.
50.PP
51The
52.B \-
53option simulates a full login.
54.SH "SEE ALSO"
55sh(1), csh(1)