kill idle users


 
Thread Tools Search this Thread
Operating Systems HP-UX kill idle users
# 1  
Old 06-01-2005
kill idle users

Hi,

In my network we uses the NetTerm program to connect us to HP-UX 10.x server from windows workstations, but in some cases the user doesn't logout and close it by window's x button. The problem is that in HP-UX the user and all his tasks remain active and when he enter again HP-UX creates a new session without kill the old session. My question is how can I configure my server to kill the idle session or at least another solution?

Thanks..
# 2  
Old 06-01-2005
See this link.
# 3  
Old 06-17-2005
MySQL I found this link also...

I am in the process of trying to figure out the configuration file to set the amount of time a user can idle. I didn't see anything in the files about removing orphaned sessions. I will continue to investigate and post my findings. Smilie
# 4  
Old 06-23-2005
auto logout after x seconds idle

you do not need an script just enter next into .profile of the users .
it's a idle tomeout counter .
Code:
TMOUT=1800
readonly TMOUT


in this exaple logged out after 30 minutes of idle .


have a nice day Wim .
# 5  
Old 06-23-2005
What happens to the user's background processes? I am assuming if they are not "nohup"ed they will be killed.
# 6  
Old 06-28-2005
MySQL The TMOUT setting rules

I have instituted the TMOUT entry and it works like a charm. Thanks for the help. Smilie
# 7  
Old 03-26-2008
kill old user

Code:
$ who -u | grep 'jarhadta'
jarhadta   pts/2        Mar 26 15:46  1:15  18639  10.236.0.207
jarhadta   pts/22       Feb 15 00:50  old    9540  10.236.0.207
jarhadta   pts/23       Feb 15 00:50  old    9572  10.236.0.207
jarhadta   pts/24       Feb 15 00:50  old    9616  10.236.0.207
jarhadta   pts/25       Feb 15 00:50  old    9650  10.236.0.207
jarhadta   pts/26       Feb 15 00:50  old    9690  10.236.0.207
jarhadta   pts/27       Feb 15 00:50  old    9728  10.236.0.207
jarhadta   pts/28       Feb 15 00:50  old    9761  10.236.0.207
jarhadta   pts/29       Feb 15 00:50  old    9815  10.236.0.207
jarhadta   pts/30       Feb 15 00:51  old   10056  10.236.0.207
jarhadta   pts/31       Feb 15 00:51  old   10088  10.236.0.207
jarhadta   pts/33       Feb 15 00:51  old    9954  10.236.0.207
jarhadta   pts/32       Feb 15 00:51  old    9933  10.236.0.207
jarhadta   pts/34       Feb 15 00:51  old    9992  10.236.0.207
jarhadta   pts/36       Feb 15 00:51  old   10122  10.236.0.207
jarhadta   pts/35       Feb 15 00:51  old   10024  10.236.0.207
jarhadta   pts/37       Feb 15 00:51  old   10156  10.236.0.207

Please tell me how can i kill this user 'jarhadta' which are in old status.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Idle command to kill the process running n unx box machine

Hi Team , I have one process named as cec_analysiseool that is running on unix box machine now i want to kill this process so please advise what will be the ideal command to kill this , what i have tried is :confused: kill -9 `ps -ef | grep cec_analysiseool | grep -v grep | awk '{print $2}'` (2 Replies)
Discussion started by: unclesamm
2 Replies

2. Shell Programming and Scripting

Kill idle Process using a script

Hi, I need a script that can automatically kill all processes named "webrepn" and "webrebw" if idle for more than 30 minutes. Then I will have a Cron Job to run the script every night or 2-3 times a day depends on how this script helps. Right now, I run "ps -ef | grep webrebn" and "kill -9... (7 Replies)
Discussion started by: MaggieL
7 Replies

3. Shell Programming and Scripting

User idle time and kill

Hello.. I have many sleepy users on my Solaris box and need to kill them if they are idle for more than 45 minutes for example...I know who -u gives and the idle time but unable to make a awk line to get the condition perfect. Please help...:wall: (9 Replies)
Discussion started by: wimaxpole
9 Replies

4. Solaris

Kill idle dt session

Hi, i need to kill the idle dt sessions through script, can anyone tell me how to do? RJS (2 Replies)
Discussion started by: rajasekg
2 Replies

5. Shell Programming and Scripting

Kill idle script is killing unnecessarly

Hi All,I have a problem with my kill idle script.my script is supposed to kill the user sessions which are idle for more than 2 hours.But is is killing the sessions which are idle for less than 2 hrs also.I dont know the exact time after which the script is killing,but it is less than 2 hours i am... (3 Replies)
Discussion started by: prabhu_kumar
3 Replies

6. AIX

Kill IDLE Process using script !!!

Dear Friends , I am using DB2 database in AIX 5.3 server . In my server some IDLE process are generated after several times which I need to kill it manually each and every time . The process I query like following : root@bagpuss $ ps auxw|sort -r +3|head -10 USER PID %CPU %MEM ... (3 Replies)
Discussion started by: shipon_97
3 Replies

7. Shell Programming and Scripting

How to kill process after x idle min?

I need a script to kill those process id whose idle time is more than 30min plz help me (3 Replies)
Discussion started by: salil2012
3 Replies

8. UNIX for Advanced & Expert Users

HP-UX users get logged off while idle.

Im "supporting" at least 2500 HP-UX workstations with CAD-related software with the B.11.11 build. I cant say anymore than that because of my companys sligtly paranoid security policy . The last few days a new problem has arised from nowhere. The problem is that users gets logged off when the... (5 Replies)
Discussion started by: Laoinjo
5 Replies

9. HP-UX

Is there a script available to kill Idle users

My max user parm is set to 1050. I'm currently at 1038 this is causing major slow downs on the server. I looking for a way log off "idle" user logins with out having to do it individually. :confused: (5 Replies)
Discussion started by: rfmurphy_6
5 Replies

10. SCO

Identifiy and Kill Idle Unix(SCO) Process called externally

Hi, Please let us know of any possiblity of identifying and killing unix proces invoked externally (by an external tool which does not create a session). 'who' command gives idle time of sessions. But what we are looking for is idle time of a process. 'ps' command gives the elapsed/running... (1 Reply)
Discussion started by: vbalajis
1 Replies
Login or Register to Ask a Question