BSD 3 development
[unix-history] / usr / man / man1 / su.1
index 14646aa..6dceb2c 100644 (file)
@@ -1,6 +1,7 @@
-.TH SU 1 
+.TH SU 1 11/16/79
+.UC
 .SH NAME
 .SH NAME
-su  \-  substitute user id temporarily
+su \- substitute user id temporarily
 .SH SYNOPSIS
 .B su
 [ userid ]
 .SH SYNOPSIS
 .B su
 [ userid ]
@@ -13,8 +14,12 @@ changes to that
 .I userid
 and invokes the Shell
 .IR sh (1)
 .I userid
 and invokes the Shell
 .IR sh (1)
-without changing the current directory or the
-user environment (see
+without changing the current directory.
+The user environment
+is unchanged except for HOME and SHELL,
+which are taken from the password file
+for the user being substituted
+(see
 .IR environ (5)).
 The new user ID stays in force until the Shell exits.
 .PP
 .IR environ (5)).
 The new user ID stays in force until the Shell exits.
 .PP
@@ -25,3 +30,9 @@ To remind the super-user of his responsibilities,
 the Shell substitutes `#' for its usual prompt.
 .SH "SEE ALSO"
 sh(1)
 the Shell substitutes `#' for its usual prompt.
 .SH "SEE ALSO"
 sh(1)
+.SH BUGS
+Local administrative rules cause restrictions to
+be placed on who can
+.I su
+to `root', even with the root password.
+These rules vary from site to site.