User`s manual

50 Installing and Using the Axel-VNCviewer
7.3 - LINUX: 'WHO' COMMAND DOESN'T LIST VNC USERS
The 'who' command (used to list connected users) does not show users
connected via a VNC session.
This problem is common to all X terminals using xdm, as xdm does not update
utmp/wtmp entries.
To fix this problem two scripts must be created. One to add a utmp/wtmp entry
and the other to remove the entry. These utmp/wtmp modifications are
performed by the system command
sessreg
. See examples below of these two
scripts (they are available on the CD-Rom):
addvncsess
/usr/X11R6/bin/sessreg -a -l $DISPLAY -x /usr/lib/X11/xdm/Xservers $USER
delvncsess
/usr/X11R6/bin/sessreg -d -l $DISPLAY -x /usr/lib/X11/xdm/Xservers $USER
Copy these scripts in /usr/lib/X11/xdm.
The addvncsess script must be run at the X session start-up and the delvncsess
script must be run at the X session reset (close). This is done by the
/usr/lib/X11/xdm/xdm-config
file.
In this file, for each VNC session, add the following lines (below two Platine VNC
sessions are configured):
DisplayManager._1.xstartup: /usr/lib/X11/xdm/addvncsess
DisplayManager._1.reset: /usr/lib/X11/xdm/delvncsess
DisplayManager._2.xstartup: /usr/lib/X11/xdm/addvncsess
DisplayManager._2.reset: /usr/lib/X11/xdm/delvncsess
The 'who' command will show all subsequent user connections.