The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
kill user session fsmadi SUN Solaris 10 08-04-2007 06:44 AM
sftp problem with user id of no telnet session allowed superdougl UNIX for Advanced & Expert Users 2 10-30-2006 07:28 AM
sqlplus session being able to see unix variables session within a script 435 Gavea Shell Programming and Scripting 2 07-03-2006 07:11 AM
Deleting root files from another user choo Shell Programming and Scripting 2 04-13-2004 05:50 AM
User login session Docboyeee UNIX for Advanced & Expert Users 1 11-10-2002 04:12 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-06-2006
Registered User
 

Join Date: Jun 2006
Location: New York
Posts: 25
Deleting a user session

I logged on yesterday and ran something that made my ID hang. I X'd out of the session and then logged on again and my ID from the original session is still there. I checked again this morning and the ID is still there (I checked using the WHO command). How can I kill that first session using root???

Thanks in advance for any replies.
Reply With Quote
Forum Sponsor
  #2  
Old 07-06-2006
Registered User
 

Join Date: May 2006
Location: MD
Posts: 14
Quote:
Originally Posted by jbrubaker
I logged on yesterday and ran something that made my ID hang. I X'd out of the session and then logged on again and my ID from the original session is still there. I checked again this morning and the ID is still there (I checked using the WHO command). How can I kill that first session using root???

Thanks in advance for any replies.
You can kill the pid that corresponds to the shell that the hung ID is using.
Reply With Quote
  #3  
Old 07-06-2006
Registered User
 

Join Date: Jun 2006
Location: New York
Posts: 25
What is the pid?
Reply With Quote
  #4  
Old 07-06-2006
Registered User
 

Join Date: Jun 2006
Location: New York
Posts: 25
I think PID means process identifier??? Is that right??

What is the command to kill the pid from the root??
Reply With Quote
  #5  
Old 07-06-2006
Registered User
 

Join Date: May 2006
Location: MD
Posts: 14
Quote:
Originally Posted by jbrubaker
What is the pid?
The Process ID. I usually use the command who to find see what terminal my other user is logged in on and then do a ps and grep for that terminal. Then you can kill the user's shell.

who
ps -ef | grep <terminal>
kill -9 <PID>
Reply With Quote
  #6  
Old 07-06-2006
Registered User
 

Join Date: Jun 2006
Location: New York
Posts: 25
When i use WHO I get this next to the ID I want to kill:

pts/1 Jul 05 15:02 (IP address)

Does that mean terminal 1??

If so, when I type

ps -ef | grep 1

I see this next to the ID I want to kill:

jbrubake 573688 565298 0 15:01:30 pts/1 0:00 -ksh

How can I determine the PID from that???
Reply With Quote
  #7  
Old 07-06-2006
Registered User
 

Join Date: May 2006
Location: MD
Posts: 14
Quote:
Originally Posted by jbrubaker
When i use WHO I get this next to the ID I want to kill:

pts/1 Jul 05 15:02 (IP address)

Does that mean terminal 1??

If so, when I type

ps -ef | grep 1

I see this next to the ID I want to kill:

jbrubake 573688 565298 0 15:01:30 pts/1 0:00 -ksh

How can I determine the PID from that???

On Solaris, the PID is the second column from the ps -ef output. You can do a man on ps to verify it is the process id.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0