On Tue, Mar 27, 2012 at 06:59:46AM -0400, Thomas Dickey wrote: > On Mon, Mar 26, 2012 at 06:27:47PM -0400, Jeffrey Sheinberg wrote: > > Now, when I get a "jsroot" login shell via "su -l jsroot", the following > > situation exists, > > > > # tty > > /dev/pts/2 > > > > # logname > > jeff > > > > # var user logname > > export USER='jsroot' > > export LOGNAME='jsroot' > > > > # who | grep pts/2 > > jeff pts/2 Mar 26 09:18 (:0.0) > > > > And when I then launch an xterm from this "jsroot" login shell on pts/2, > > I have problems with xterm 261-1 & 276-2, like this, > > > > # tty > > /dev/pts/6 > > > > # logname > > root > > > > # var user logname > > export USER='jsroot' > > export LOGNAME='root' > > > > # who | grep pts/6 > > root pts/6 Mar 26 16:12 (:0.0) > > > > while xterm 235-2 works correctly, like this, > > > > # tty > > /dev/pts/6 > > > > # logname > > jsroot > > > > # var user logname > > export USER='jsroot' > > export LOGNAME='jsroot' > > > > # who | grep pts/6 > > jsroot pts/6 Mar 26 16:02 (:0.0) I can make $USER and $LOGNAME the same in the xterm as in its parent, but utempter doesn't provide a way to set the user's name which would show up in "who". It only has parameters for hostname and pty name. It fills in the user and date by itself. -- Thomas E. Dickey <dickey@invisible-island.net> http://invisible-island.net ftp://invisible-island.net
Attachment:
signature.asc
Description: Digital signature