- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: User login dead in the system
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
10-24-2006 02:10 PM
10-24-2006 02:10 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 02:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 03:49 PM
10-24-2006 03:49 PM
Re: User login dead in the system
the below is the who -u output ,
oxt_usr pts/77 Oct 25 08:01 00:01 25875 (192.168.105.158)
can advise how to make use lsof to find the ppid ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 04:05 PM
10-24-2006 04:05 PM
Re: User login dead in the system
You've already determined the user in question with your 'who -u'. The result being:
oxt_usr pts/77 Oct 25 08:01 00:01 25875 (192.168.105.158)
To determine the PPID or the shell, you can use pf and grep for the pts:
# ps -ef | grep pts/77
Look under the command column for -sh, that should have the PPID and you should be able to kill -9
Example on my system:
# who -u
jmallett pts/ta Oct 25 00:00 0:01 7225 serverA.domain.com
root pts/0 Oct 24 23:54 . 6819 serverB.domain.com
# ps -ef |grep pts/ta
jmallett 7690 7225 0 00:00:21 pts/ta 0:00 ksh
jmallett 7225 7224 0 00:00:04 pts/ta 0:00 -sh
jmallett 10236 7690 0 00:01:15 pts/ta 0:00 ksh
# kill -9 7225
# who -u
root pts/0 Oct 24 23:54 . 6819 serverB.domain.com
Hope this helps...
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 06:29 PM
10-24-2006 06:29 PM
Re: User login dead in the system
But I found that the pts/77 is used by another user , it seems the process was dead for long time so another user has used it , can advise what can I do ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 06:57 PM
10-24-2006 06:57 PM
Re: User login dead in the system
To be sure that user still have some sessions and/or processes left on the server while he is not connected any more, run "ps -fu
If your concern is the number of available telnet sessions you can run "ps -ef|grep telnetd|grep -v grep|wc -l", it will tell the number of telnet session alive on that server. The following loop will tell you who has a telnet session on the server now:
for x in `ps -ef|grep telnetd|grep -v grep|awk '{print $2}'`
do
ps -ef|grep $x|grep -vE "grep|telnetd"
done
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 10:36 PM
10-24-2006 10:36 PM
Re: User login dead in the system
Bill Hassell, sysadmin