=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/su/su.1,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/su/su.1 1996/10/12 20:40:38 1.4 --- src/usr.bin/su/su.1 1996/10/26 03:19:30 1.5 *************** *** 1,4 **** ! .\" $OpenBSD: su.1,v 1.4 1996/10/12 20:40:38 millert Exp $ .\" Copyright (c) 1988, 1990 The Regents of the University of California. .\" All rights reserved. .\" --- 1,4 ---- ! .\" $OpenBSD: su.1,v 1.5 1996/10/26 03:19:30 millert Exp $ .\" Copyright (c) 1988, 1990 The Regents of the University of California. .\" All rights reserved. .\" *************** *** 70,75 **** --- 70,76 ---- S/Key is a Trademark of Bellcore. .Pp By default, the environment is unmodified with the exception of + .Ev LOGNAME , .Ev USER , .Ev HOME , and *************** *** 78,85 **** and .Ev SHELL are set to the target login's default values. .Ev USER ! is set to the target login, unless the target login has a user ID of 0, in which case it is unmodified. The invoked shell is the target login's. This is the traditional behavior of --- 79,88 ---- and .Ev SHELL are set to the target login's default values. + .Ev LOGNAME + and .Ev USER ! are set to the target login, unless the target login has a user ID of 0, in which case it is unmodified. The invoked shell is the target login's. This is the traditional behavior of *************** *** 102,115 **** .Ev SHELL , .Ev PATH , .Ev TERM , and .Ev USER . .Ev HOME and .Ev SHELL are modified as above. .Ev USER ! is set to the target login. .Ev PATH is set to .Dq Pa /usr/bin:/bin . --- 105,121 ---- .Ev SHELL , .Ev PATH , .Ev TERM , + .Ev LOGNAME , and .Ev USER . .Ev HOME and .Ev SHELL are modified as above. + .Ev LOGNAME + and .Ev USER ! are set to the target login. .Ev PATH is set to .Dq Pa /usr/bin:/bin . *************** *** 202,211 **** .It Ev TERM Provides terminal type which may be retained for the substituted user ID. ! .It Ev USER The user ID is always the effective ID (the target user ID) after an .Nm su unless the user ID is 0 (root). .El .Sh HISTORY A --- 208,220 ---- .It Ev TERM Provides terminal type which may be retained for the substituted user ID. ! .It Ev LOGNAME The user ID is always the effective ID (the target user ID) after an .Nm su unless the user ID is 0 (root). + .It Ev USER + Same as + .Ev LOGNAME . .El .Sh HISTORY A