Re: How to tell if someone is connected via vnc



Hi,

I would check for established VNC connections this way:

netstat -tape | grep ESTABLISHED | grep Xvnc

As for warning connected users. If you see there is an established vnc
session on port 5902, you could simply do:

export DISPLAY=:2.0; xmessage -center -timeout 60 -file shutdown.txt >
/dev/null 2>&1

You could create a list of established connections, translate it to active
displays (5902 -> 2.0 | 5903 -> 3.0 ...) and send out a message.

Hope it helps
Olivier

2008/1/31, Henning Larsen <hennlar@xxxxxxxx>:

Thanks for the answer :)


I have made a file "ww" that is executable containing:

"netstat -an | grep ESTABLISHED | grep -v 127.0.0.1".

Is this sufficient to tell if any are connected / logged in?
Is there any way to tell people logged in via vnc that I am going to
reboot the system? something like 'wall'?


Henning Larsen

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Relevant Pages

  • Re: [SLE] Desktop Sharing with VNC [SOLVED]
    ... Greg Engel wrote: ... > download tight vnc, ... > Keep in mind vncviewer does have an option for ssh tunneling. ... Checked "Allow uninvited connections" and "Allow uninvited ...
    (SuSE)
  • RE: VNC logging
    ... > This with catch VNC connections on any port. ... >>As for logging, you could run snort on the box, ...
    (Focus-Microsoft)
  • RE: VNC logging
    ... This with catch VNC connections on any port. ... and have snort log instances of that. ... >> Subject: VNC logging ...
    (Focus-Microsoft)
  • Re: VNC Security
    ... Aside from SSH tunneling, do you think that there would be a way to use ... regular SSL to encrypt the vnc stream between two computers? ... Another way to make these connections more secure with those ... set a very long and very difficult password for the server (it will ...
    (Security-Basics)
  • RE: VNC Security
    ... Subject: VNC Security ... > and their router back to the cable/dsl modem. ... Another way to make these connections more secure with those ... set a very long and very difficult password for the server (it will ...
    (Security-Basics)