![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Idle users over 1 day | pbonilla | Shell Programming and Scripting | 1 | 11-27-2006 06:07 PM |
| script to kill idle users | tayyabq8 | Shell Programming and Scripting | 8 | 04-24-2006 08:50 AM |
| Log off idle users | wtofu | AIX | 0 | 06-30-2005 06:38 PM |
| Is there a script available to kill Idle users | rfmurphy_6 | HP-UX | 5 | 06-16-2005 01:31 PM |
| Identifiy and Kill Idle Unix(SCO) Process called externally | vbalajis | SCO | 1 | 12-19-2003 07:52 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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.. |
| Forum Sponsor | ||
|
|
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
|||
|
|||
|
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 . TMOUT=1800 readonly TMOUT in this exaple logged out after 30 minutes of idle . have a nice day Wim . |
|
#5
|
|||
|
|||
|
What happens to the user's background processes? I am assuming if they are not "nohup"ed they will be killed.
|
|
#6
|
|||
|
|||
|
I have instituted the TMOUT entry and it works like a charm. Thanks for the help.
|
|
#7
|
|||
|
|||
|
kill old user
$ 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. |
|||
| Google The UNIX and Linux Forums |