Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.bin/su Pull up revision 1.18 (requested by abs):
details: https://anonhg.NetBSD.org/src/rev/e41fc01a107c
branches: netbsd-1-4
changeset: 470373:e41fc01a107c
user: he <he%NetBSD.org@localhost>
date: Fri Feb 18 19:31:12 2000 +0000
description:
Pull up revision 1.18 (requested by abs):
Have su set SU_FROM environment variable, and use to avoid
incorrect 'use su' warning in root's .login.
diffstat:
usr.bin/su/su.1 | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diffs (53 lines):
diff -r 9cc55404e489 -r e41fc01a107c usr.bin/su/su.1
--- a/usr.bin/su/su.1 Fri Feb 18 19:28:13 2000 +0000
+++ b/usr.bin/su/su.1 Fri Feb 18 19:31:12 2000 +0000
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)su.1 8.2 (Berkeley) 4/18/94
-.\" $NetBSD: su.1,v 1.14.4.1 2000/01/08 18:35:58 he Exp $
+.\" $NetBSD: su.1,v 1.14.4.2 2000/02/18 19:31:12 he Exp $
.\"
.Dd April 18, 1994
.Dt SU 1
@@ -72,8 +72,9 @@
By default, the environment is unmodified with the exception of
.Ev USER ,
.Ev HOME ,
+.Ev SHELL ,
and
-.Ev SHELL .
+.Ev SU_FROM .
.Ev HOME
and
.Ev SHELL
@@ -81,8 +82,12 @@
.Ev USER
is set to the target login, unless the target login has a user ID of 0,
in which case it is unmodified.
+.Ev SU_FROM
+is set to the caller's login.
The invoked shell is the target login's.
-This is the traditional behavior of
+With the exception of
+.Ev SU_FROM
+this is the traditional behavior of
.Nm "" .
.Pp
The options are as follows:
@@ -102,11 +107,13 @@
.Ev SHELL ,
.Ev PATH ,
.Ev TERM ,
+.Ev USER ,
and
-.Ev USER .
+.Ev SU_FROM .
.Ev HOME
+.Ev SHELL ,
and
-.Ev SHELL
+.Ev SU_FROM
are modified as above.
.Ev USER
is set to the target login.
Home |
Main Index |
Thread Index |
Old Index