Are you starting a new VNC session for each user using xinetd or are the users sharing a single VNC session?
If it is the former you can configure inetd to run your shell script instead of directly starting a VNC session (running Xvnc). In the shell script you can check if the allowed limit of Xvnc sessions has been exceeded and only if not, run Xvnc. -siva. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tillman William A CIV USAF 96 CG/SCWDT Sent: Wednesday, February 21, 2007 9:39 AM To: 'vnc-list@realvnc.com' Subject: Limit number of users Does anyone know how to limit the number of people to log on to a particular server using VNC to only 2 users? _______________________________________________ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list Confidentiality Notice This e-mail (including any attachments) is intended only for the recipients named above. It may contain confidential or privileged information and should not be read, copied or otherwise used by any other person. If you are not a named recipient, please notify the sender of that fact and delete the e-mail from your system. _______________________________________________ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list