Commit | Line | Data |
---|---|---|
16773074 BJ |
1 | .TH SU 1 11/16/79 |
2 | .UC | |
3 | .SH NAME | |
4 | su \- substitute user id temporarily | |
5 | .SH SYNOPSIS | |
6 | .B su | |
7 | [ userid ] | |
8 | .SH DESCRIPTION | |
9 | .I Su | |
10 | demands the password of the specified | |
11 | .I userid, | |
12 | and if it is given, | |
13 | changes to that | |
14 | .I userid | |
15 | and invokes the Shell | |
16 | .IR sh (1) | |
17 | without changing the current directory. | |
18 | The user environment | |
19 | is unchanged except for HOME and SHELL, | |
20 | which are taken from the password file | |
21 | for the user being substituted | |
22 | (see | |
23 | .IR environ (5)). | |
24 | The new user ID stays in force until the Shell exits. | |
25 | .PP | |
26 | If no | |
27 | .I userid | |
28 | is specified, `root' is assumed. | |
29 | To remind the super-user of his responsibilities, | |
30 | the Shell substitutes `#' for its usual prompt. | |
31 | .SH "SEE ALSO" | |
32 | sh(1) | |
33 | .SH BUGS | |
34 | Local administrative rules cause restrictions to | |
35 | be placed on who can | |
36 | .I su | |
37 | to `root', even with the root password. | |
38 | These rules vary from site to site. |