Re: xterm does not show up in who/w

From: Thomas Dickey (dickey_at_saltmine.radix.net)
Date: 08/31/04


Date: Tue, 31 Aug 2004 16:23:21 -0000

Gregory Smith <gregory@please.post.here> wrote:
> -snip-
>>> $ ls -lsa /var/run/utmp
>>> 2 -rw-r--r-- 1 root wheel 1452 30 Aug 10:41 /var/run/utmp
>>
>>> this problem only exists with xterm. aterm and Eterm show up.
>>
>> What are the permissions on the executables for xterm, aterm, Eterm?

> $ ls -lsa `which Eterm`
> 4 -rws--x--x 1 root wheel 3428 3 Jun 16:24 /usr/X11R6/bin/Eterm

That's expected.

> $ ls -lsa `which xterm`
> 0 lrwxr-xr-x 1 root wheel 27 16 Aug 09:19 /usr/X11R6/bin/xterm ->
> /usr/X11R6/bin/xterm-static

This would show the actual permissions. Without the -L, you see only the
permissions of the symbolic link:

  $ ls -Llsa `which xterm`

>> it would only help if you had utempter installed (the output of the configure
>> script notes that).

> i guess i have to a) set the sticky bit and b) build it with utemper
> (which i already did).

Does ldd xterm show utempter as a dependency? (That's the easiest check -
xterm of course also has to have compiled-in code to use it, but the
configure script is unlikely to have set the #define's without the library).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

Quantcast