It looks like openbox (or whatever is logging the terminals) knows not to cause this sort of trouble. I added a sudo aterm shortcut and when I fire it up, I get
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT kevmitch tty7 :0 09:03 0.00s 13.38s 0.04s /bin/bash /home/kevmitch/.xsession kevmitch pts/1 :0 09:03 5:55m 0.02s 0.02s mutt kevmitch pts/0 :0 09:03 5:55m 0.13s 0.13s bash kevmitch pts/2 :0 09:03 3:47m 0.41s 0.04s /usr/bin/aterm -geometry 106x32-640-412 - kevmitch pts/3 :0 09:05 1:32m 0.22s 0.22s bash root pts/5 :0.0 09:07 1:33m 0.20s 0.20s bash root pts/6 :0.0 09:09 0.00s 0.18s 0.00s w So it appends the extra ".0" when it might cause confusion. In any case, it might have been all right even if this wasn't the case, since the real login TTY seems to always be the first in the list. Thus, truncating to just the first result would have prevented any root ":0" from spoiling the pudding. That probably wouldn't be very reassuring though, because who knows if that ordering is set in stone. Kevin On Mon, Sep 8, 2008 at 1:20 AM, Bart Samwel <[EMAIL PROTECTED]> wrote: > Hi Kevin, > > Kevin Mitchell wrote: >> >> $ w >> 01:00:47 up 1 day, 23:51, 9 users, load average: 0.00, 0.04, 0.07 >> USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT >> kevmitch tty7 :0 Sun03 0.00s 8:36m 0.04s >> /bin/bash /home/kevmitch/.xsession >> kevmitch pts/1 :0 00:57 2.00s 0.22s 0.02s aterm >> kevmitch pts/2 :0 00:55 5:01m 0.17s 0.17s bash >> kevmitch pts/4 :0 13:27 3:07 0.77s 0.77s bash >> kevmitch pts/5 :0 23:49 14:05m 3.51s 0.00s >> /bin/sh /usr/local/bin/matlab -nosplash - >> kevmitch pts/6 :0 18:48 6:12 0.26s 0.26s bash >> kevmitch pts/7 :0 18:49 3:08 2.09s 0.00s >> /bin/sh /usr/local/bin/matlab -nosplash - >> kevmitch pts/8 :0 00:56 3:48m 0.19s 0.19s bash >> kevmitch pts/9 :0.0 01:00 0.00s 0.19s 0.00s w >> >> >> All the pts's are the xterminals I have open. The ones without ".0" >> are aterm's started via key bindings in Openbox. The lone :0.0 is one >> that I started by typing "aterm" on the command line of an already >> open xterminal. Don't ask me why that makes a difference :) > > Thanks for the info. I hadn't seen this type before -- all cases I've seen > up till now showed one entry for :0 and all terminal entries for :0.0. What > I'm wondering is if you can get it to show a different user name while still > showing :0, for instance > > root pts/4 :0 13:27 3:07 0.77s 0.77s bash > > if you edit the Openbox config and edit the hotkey to start something like > "sudo <aterm command line>" or something similar. Because then I'm getting > *really* unhappy about how this looks... > > Cheers, > Bart > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]