Deleting a user session


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Deleting a user session
# 1  
Old 07-06-2006
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.
# 2  
Old 07-06-2006
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.
# 3  
Old 07-06-2006
What is the pid?
# 4  
Old 07-06-2006
I think PID means process identifier??? Is that right??

What is the command to kill the pid from the root??
# 5  
Old 07-06-2006
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>
# 6  
Old 07-06-2006
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???
# 7  
Old 07-06-2006
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Network User Session

dear colleagues, please help, i have a linux server (linux 5.3) running oracle 10g database for application. there are 98 users who are using that oracle application over LAN. but during the working hours the user session is increased (min 150 users) bcos one user is working on different client... (7 Replies)
Discussion started by: Abrar
7 Replies

2. Shell Programming and Scripting

how to run a command as soon as user exits from session

I need to write a script, where I have to get names of files that are to be deleted from a user and have to delete those files when he exits session. How to set a particular command to be run as soon as user exits from a session? Can somebody help? I have to write a script on linux system.... (3 Replies)
Discussion started by: yashashri
3 Replies

3. Solaris

Number of process per user session

Hi All, Do we have any option through which we can limit the number of process which can be started by single user session. Thanks (3 Replies)
Discussion started by: kumarmani
3 Replies

4. AIX

user session restriction

hi, I am facing a problem from the remote system if i login to my AIX5.3 machine as root (thru telnet) the session does not expire for 2 hours even if the session is kept ideal But whenever i do the same thing from some other user then the session is lost within 10 minutes (if session is kept... (2 Replies)
Discussion started by: pchangba
2 Replies

5. AIX

user session restriction

I want to restrict user's loging according to number of session. example the user named "patrik" can be login concurrently from 12 stations thru telnet the 13th if some body tries to telnet 13th session it should not allow, until any of the 12 sessions are closed. is it possibel ...i think... (2 Replies)
Discussion started by: pchangba1
2 Replies

6. Linux

Launch application in gnome session of another user.

A gnome session is launched by UserA of System A, I am connected to userB of System B(or A) through PUTTY. I want to launch an application for eg: gedit through Putty in the display of system A. how can I achieve this. for eg:- root is logged in to System A, with gdm. DISPLAY=0.0, ip =... (4 Replies)
Discussion started by: Sivaswami
4 Replies

7. Solaris

kill user session

how do i kill a user session (10 Replies)
Discussion started by: fsmadi
10 Replies

8. UNIX for Advanced & Expert Users

sftp problem with user id of no telnet session allowed

We used to have a ftp user id with no telnet session allowed in server side. We used this ftp user id in script by transferring file from client to Server. Currently we need to implement sftp to replace ftp. We have tested few round and working fine by using sftp with normal user id (allow... (2 Replies)
Discussion started by: superdougl
2 Replies

9. HP-UX

tracing a user's session

hi, does anyone knows how to trace a user session on a unix system: i want to log these things 1- login 2- date of starting session 3- date of closing session i've tryed who and last but they don't give closing time of session regards hmaiida (2 Replies)
Discussion started by: hmaiida
2 Replies

10. UNIX for Advanced & Expert Users

User login session

Having a problem on AIX 4.3.3 with the following error when more than 2 users try and sign onto the server. 3004-312 All available login sessions are in use. ???? (1 Reply)
Discussion started by: Docboyeee
1 Replies
Login or Register to Ask a Question