Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-11-2008, 08:11 PM   #1
LQ Newbie
Registered: Sep 2007
Location: Norway
Distribution: Gentoo, Debian
Posts: 24

Rep: Reputation: 15
Kill specific vnc user from joint session

lsof gives me
Xtightvnc 5341 user  2w  REG  8,19 3475962  277858 /home/user/.vnc/server:1.log

Xtightvnc 5341 user  8u  IPv4  319506  TCP server.local:5901->box1.local:2290 (ESTABLISHED)
Xtightvnc 5341 user  31u IPv4  337531  TCP server.local:5901->box2.local:2290 (ESTABLISHED)
how can i kick the first user from the session when they all use the same process?
Old 05-07-2011, 04:08 AM   #2
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254

Just out of curiosity, do you have a "vnc" command somewhere on your system? If so, try this;
vnc -show
This should list all the users connected to VNC

vnc -kill user display
This can kill individual user sessions. Note that display should match the display number listed in the output from the "-show".

Hope this helps!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Log Out a Specific User (KILL) carlosinfl Linux - General 8 08-29-2007 11:53 AM
kill specific process fj8283888 Linux - General 6 05-31-2007 07:28 AM
how to kill specific python script melinda_sayang Linux - General 2 12-04-2005 04:31 AM
How can I kill a user session? vous Linux - Security 3 03-20-2005 02:02 PM
kill a specific session in windows rabeea General 8 12-15-2004 04:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration