- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cleaning up unix user session
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2002 04:53 AM
05-17-2002 04:53 AM
Cleaning up unix user session
Any idea why HP-UX isn't shutting these processes down?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2002 05:01 AM
05-17-2002 05:01 AM
Re: Cleaning up unix user session
Maybe the user did start some apps with nohup and in the background.
This would explain why these processes stay alive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2002 05:15 AM
05-17-2002 05:15 AM
Re: Cleaning up unix user session
1. cd /usr/lib/acct
2. ./fwtmp < /etc/utmp > /tmp/utmp
3. edit /tmp/utmp changing 5th column to 8 for ghost user
4. ./fwtmp -ic < /tmp/utmp > /etc/utmp
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2002 05:19 AM
05-17-2002 05:19 AM
Re: Cleaning up unix user session
Run ps -ef | grep
to see if any processes remain.
Do this also when user logged in, and again after they log out to compare.
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2002 10:01 PM
05-18-2002 10:01 PM
Re: Cleaning up unix user session
Try adding this line into /etc/profile
# TMOUT=3600
# export TMOUT
This will terminate the shell after 1 hour (3600sec.) automaticaly.
I hope that answres your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2002 08:32 AM
05-19-2002 08:32 AM
Re: Cleaning up unix user session
A well-written Xwindow application will use keep-alive or health-checks to see that the display still exists, but most do not. Make sure that the users have not disabled trap processing in their login profile (check /etc/profile too). Otherwise, you'll have to regularly cleanup the mess left behind.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2002 08:14 AM
06-06-2002 08:14 AM
Re: Cleaning up unix user session
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2002 08:26 AM
06-06-2002 08:26 AM
Re: Cleaning up unix user session
when your session is terminated, all processes of the session, which do not ignore the SIGHUP (1) signal, will receive the signal.
You can check that with a test script you start in the background, containing the line
trap 'echo "$(date): received SIGHUP" >>/tmp/xxx' SIGHUP
When you send the signal (#kill SIGHUP pid) to the process, and also when the session ends, should create output in /tmp/xxx.
Regards, Klaus