xdm adding utmp entrys using sessreg: Problems

xdm adding utmp entrys using sessreg: Problems

Post by Daryl Sayer » Sat, 04 Jul 1998 04:00:00



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

 
 
 

1. Problem: xdm/sessreg/utmp don't work

Subject: Solaris 2.x xdm sessreg utmp problem
Keywords: xdm utmp sessreg

I cannot get sessreg to add entries to my /var/adm/utmp file.

I have Solaris version as follows:
SunOS Release 5.3 Version Generic_101674-01 [UNIX(R) System V]
Running Solaris 2.3 distributed xdm and sessreg.

sessreg is used for instance by xdm Xstartup commonly to update utmp and
wtmp files to keep track of logged in sessions.  sessreg does update the
wtmp file in my case but not the utmp file.  I will run sessreg as root,
make /var/adm/utmp world writeable, provide sessreg with options that it
shouldn't need, to tell it where utmp is ... I can not get sessreg to update
utmp.  It does update wtmp mind you.

What might be wrong?

Thanks.


2. CD-ROM burners for linux

3. xdm and sessreg: wtmp/utmp

4. Need help in filling openings

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

6. RH5, HP DeskJet

7. X11R5 xdm sessreg using utmpx?

8. Auto Logout

9. sessreg/xdm wtmp problem, Solaris 2.3

10. xdm/sessreg problem (with solution:)

11. XDM & sessreg

12. Solaris - xdm - sessreg

13. xdm, sessreg and last