LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-04-2006, 03:43 AM   #1
NuxIT
Member
 
Registered: Jul 2003
Location: Westminser, CO
Distribution: xUbuntu
Posts: 137

Rep: Reputation: 20
Killing multiple user sessions?


I have a problem and I can't seem to figure out how to kill these additional users sessions I have running. I think each time I stop my main.py file that runs my last.fm audio streaming it keeps a user session running. It would makes sense since I've started the main.py and killed it two or three times now. Here are my users sessions I want to kill all but the :0 tty session I believe right? Thanks for any/all help.

Code:
nuxbox:/home/styles # users
styles styles styles
nuxbox:/home/styles # w
 02:46:40 up  2:55,  3 users,  load average: 0.13, 0.15, 0.34
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
styles   :0        23:52   ?xdm?   8:09   0.10s /bin/sh /opt/kde3/bin/startkde
styles   pts/1     23:53    2:53m  0.00s  4.46s kded [kdeinit]
styles   pts/0     02:34    0.00s  0.03s  0.01s /bin/bash
 
Old 10-04-2006, 08:09 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by NuxIT
I have a problem and I can't seem to figure out how to kill these additional users sessions I have running. I think each time I stop my main.py file that runs my last.fm audio streaming it keeps a user session running. It would makes sense since I've started the main.py and killed it two or three times now. Here are my users sessions I want to kill all but the :0 tty session I believe right? Thanks for any/all help.

Code:
nuxbox:/home/styles # users
styles styles styles
nuxbox:/home/styles # w
 02:46:40 up  2:55,  3 users,  load average: 0.13, 0.15, 0.34
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
styles   :0        23:52   ?xdm?   8:09   0.10s /bin/sh /opt/kde3/bin/startkde
styles   pts/1     23:53    2:53m  0.00s  4.46s kded [kdeinit]
styles   pts/0     02:34    0.00s  0.03s  0.01s /bin/bash
:0 is most likely for your X sessions, yes, it records you logged in when you have X running. On top of that, you most likely have pts/1 for your KDE session, so don't kill that one. And the last one on pts/0, that is probably the terminal you have running to run this command, yes, that records you as logged in as well. My suggestion, don't kill any of these if you want your system to run properly or you'll find yourself logging yourself out by kill these sessions.
 
Old 10-05-2006, 05:06 AM   #3
NuxIT
Member
 
Registered: Jul 2003
Location: Westminser, CO
Distribution: xUbuntu
Posts: 137

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by trickykid
:0 is most likely for your X sessions, yes, it records you logged in when you have X running. On top of that, you most likely have pts/1 for your KDE session, so don't kill that one. And the last one on pts/0, that is probably the terminal you have running to run this command, yes, that records you as logged in as well. My suggestion, don't kill any of these if you want your system to run properly or you'll find yourself logging yourself out by kill these sessions.
Ok, it seemed strange to me because I've never noticed it before on any of my previous linux distros. I'm on my Linux Knoppix laptop right now and it only shows ONE user session. And I have KDE 3 running with the terminal session. I'll have to check my SUSE next time on a fresh boot. Here's my laptop.

Code:
root@nuxbox:/etc/ssh# users
james
root@nuxbox:/etc/ssh# w
 04:06:20 up 1 day, 14:58,  1 user,  load average: 1.46, 0.65, 0.37
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
james    :0       -                Tue13   ?xdm?   5:24m  0.13s /bin/sh /usr/bin/x-sessi
root@nuxbox:/etc/ssh#
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing /killing other sessions WNS - SP-CAS Linux - Newbie 3 03-27-2006 12:00 PM
d/l sessions killing my dsl in BSD? Geocritter *BSD 0 12-05-2005 07:15 AM
Multiple Sessions? ttague Linux - Newbie 4 01-02-2005 10:00 AM
Multiple X sessions tw001_tw Slackware 9 05-31-2004 12:35 PM
Multiple X sessions gluon Linux - General 1 09-29-2001 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:06 PM.

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