?? using sessreg and xterm +ut to update /etc/utmp

?? using sessreg and xterm +ut to update /etc/utmp

Post by Klaus ZLOE » Fri, 27 May 1994 21:33:50

Having following problems:
if i login via xdm, the /etc/utmp and /etc/wtmp files are not touched,
i found out that i have to add a script (Displ....*Xstartup:Xstartup
and Displ....*Xreset:Xreset) where u- and wtmp are updated.
There i have to call sessreg -a .... and sessreg -d ...
Well, it does not work. sessreg tells me : wrong argument in lseek
all files (/usr/X386/lib/xdm/Xservers and /etc/ttys) exists.

second, i want xterm to log to u- and wtmp too, but xterm +ut does not work
thanks in advance


Joanneum Research     | PSI   : PSI%2631102911::ZLOEBL
Steyrergasse 17       |
A-8020 Graz           | Phone: ++43/316/876/243
AUSTRIA               |


1. xdm adding utmp entrys using sessreg: Problems

I am running RH5 and I have several X terminals networked. I also have
a FreeBSD machine.

I am trying to make xdm add utmp entrys so I can use 'w' to view who
has logged into their X termial. I have added entrys in xdm-config
to use Xstartup and Xreset. In these files I have calls to sessreg.

/usr/bin/X11/sessreg -a -l $DISPLAY -x /var/db/Xservers.sessreg $USER

The utmp entry is added but as soon as the Xstartup script
is complete w will no longer report the utmp entry. who still works.

Why does this happen.

Linux machine
bash$ w
 10:20am  up  1:40h,  2 users,  load average: 0.01, 0.01, 0.00

daryl    ttyp1   8:51am   0:00   0:01   0:00 w
bash$ who
daryl    ttyp1    Jul  3 08:51 (bigd)
logtst   da23:0  Jul  3 08:52 (da23.ci.com.au:0)

Doing the same thing on my FreeBSD machine runs flawlessly. eg:

bash$ w
logtst            da23:0  Jul  3 07:39   (da23:0)
bash$ who

logtst   mor da23:0           Fri08AM     0 -

     --->>>>> PLEASE remove  SP from the Reply address <<<<---
Daryl Sayers
Corinthian Engineering                         Ph: (02) 9906 4333
Suite 19, 401 Pacific Hwy                     Fax: (02) 9906 1556

Australia                                     www: http://www.cordoors.com.au

2. DGA graphics failing badly

3. xterms not updating utmp

4. Gold plated Linux box

5. Important: Smail and Linux

6. Problem with 2.2.6, xterm failing to update utmp properly

7. Ipchains kills DSL connection

8. xterm not updating utmp on exit

9. xterm doesn't update utmp when exiting

10. Xterm writing to /etc/utmp failing...

11. security on Sun /etc/utmp and xterm