fixed order of tgoto args, zapped reliance on former isprint bug
[unix-history] / usr / src / usr.bin / su / su.1
index aad9ae1..9a57446 100644 (file)
@@ -13,7 +13,7 @@
 .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 .\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 .\"
 .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 .\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 .\"
-.\"    @(#)su.1        6.6 (Berkeley) %G%
+.\"    @(#)su.1        6.7 (Berkeley) %G%
 .\"
 .TH SU 1 ""
 .UC
 .\"
 .TH SU 1 ""
 .UC
@@ -44,9 +44,13 @@ login's home directory.
 .PP
 The \fI-m\fP option causes the environment to remain unmodified, and
 the invoked shell to be your login shell.  No directory changes are
 .PP
 The \fI-m\fP option causes the environment to remain unmodified, and
 the invoked shell to be your login shell.  No directory changes are
-made.  As a security precaution, if the target shell is not a standard
-shell (as defined by \fIgetusershell\fP(3)) it is invoked instead of
-your login shell.
+made.  As a security precaution, if the 
+.I -m
+option is specified, the target user's shell is a non-standard shell
+(as defined by \fIgetusershell\fP(3)) and the caller's real uid is
+non-zero,
+.I su
+will fail.
 .PP
 If the invoked shell is \fIcsh\fP, the \fI-f\fP option prevents it from
 reading the \fI.cshrc\fP file.  Otherwise, this option is ignored.
 .PP
 If the invoked shell is \fIcsh\fP, the \fI-f\fP option prevents it from
 reading the \fI.cshrc\fP file.  Otherwise, this option is ignored.