Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/usr.bin/su Pull up revision 1.44 via patch (requested b...
details: https://anonhg.NetBSD.org/src/rev/9914a70d9a44
branches: netbsd-2-0
changeset: 564810:9914a70d9a44
user: riz <riz%NetBSD.org@localhost>
date: Mon Jul 18 03:45:41 2005 +0000
description:
Pull up revision 1.44 via patch (requested by kleink in ticket #2070):
Set LOGNAME in the new environment (in addition to USER);
fixes PR bin/30670 from Pavel Cahyna.
diffstat:
usr.bin/su/su.1 | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diffs (65 lines):
diff -r bc6c659673c2 -r 9914a70d9a44 usr.bin/su/su.1
--- a/usr.bin/su/su.1 Mon Jul 18 03:45:40 2005 +0000
+++ b/usr.bin/su/su.1 Mon Jul 18 03:45:41 2005 +0000
@@ -26,7 +26,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)su.1 8.2 (Berkeley) 4/18/94
-.\" $NetBSD: su.1,v 1.36.2.1 2004/04/29 04:13:18 jmc Exp $
+.\" $NetBSD: su.1,v 1.36.2.2 2005/07/18 03:45:41 riz Exp $
.\"
.Dd August 20, 2003
.Dt SU 1
@@ -66,6 +66,7 @@
S/Key is a Trademark of Bellcore.
.Pp
By default, the environment is unmodified with the exception of
+.Ev LOGNAME ,
.Ev USER ,
.Ev HOME ,
.Ev SHELL ,
@@ -75,9 +76,11 @@
and
.Ev SHELL
are set to the target login's default values.
+.Ev LOGNAME
+and
.Ev USER
-is set to the target login, unless the target login has a user ID of 0,
-in which case it is unmodified.
+are set to the target login, unless the target login has a user ID of 0,
+in which case they are unmodified.
.Ev SU_FROM
is set to the caller's login.
The invoked shell is the target login's.
@@ -121,6 +124,7 @@
.Ev SHELL ,
.Ev PATH ,
.Ev TERM ,
+.Ev LOGNAME ,
.Ev USER ,
and
.Ev SU_FROM .
@@ -129,8 +133,10 @@
and
.Ev SU_FROM
are modified as above.
+.Ev LOGNAME
+and
.Ev USER
-is set to the target login.
+are set to the target login.
.Ev PATH
is set to the path specified in the
.Pa /etc/login.conf
@@ -232,6 +238,10 @@
.It Ev HOME
Default home directory of real user ID unless modified as
specified above.
+.It Ev LOGNAME
+The user ID is always the effective ID (the target user ID) after an
+.Nm
+unless the user ID is 0 (root).
.It Ev PATH
Default search path of real user ID unless modified as specified above.
.It Ev TERM
Home |
Main Index |
Thread Index |
Old Index