- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Users being shown as still logged on
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
Discussions
Discussions
Forums
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
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
тАО12-23-2009 08:38 AM
тАО12-23-2009 08:38 AM
The users are still showing as logged even after logging off. The outputs of "who" and "last" commands vary to a large extent.
Any comments?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2009 09:07 AM
тАО12-23-2009 09:07 AM
Re: Users being shown as still logged on
Some times if a user doesn't logout correctly there session will still show up with the who command. The only way I know to clear it is to reboot which isn't always an option.
sp,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2009 09:08 AM
тАО12-23-2009 09:08 AM
Re: Users being shown as still logged on
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2009 09:11 AM
тАО12-23-2009 09:11 AM
SolutionThis is not unexpected if your users disconnect from your server by abortively closing (for example) a telnet session running on a PC emulator. In this case, there is no signal to write a logoff record. Usually the missing information is in the 'wtmps' file from which 'last' reads. You can null this file and/or fix it up if you insist. If it is the output of 'who' that is corrupt, the next reboot will cure that.
Problems like this tended to be more prevalent in earlier HP-UX releases; less so, seemingly, in current releases.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2009 09:35 AM
тАО12-23-2009 09:35 AM
Re: Users being shown as still logged on
Your /var/adm/syslog/wtmp file may be corrupt. Sounds like it. Try the wtmpfix command as well as fwtmp.
You should have used fwtmp to read the old file out in ASCII format, removed any spurious entries, and then used fwtmp to rewrite the file in binary format.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=29295
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2009 05:55 PM
тАО12-23-2009 05:55 PM
Re: Users being shown as still logged on
This means HP-UX is broken. What OS version are you using?
>sp: The only way I know to clear it is to reboot which isn't always an option.
Or edit the utmp(4) files.
>Pete: If they have no processes then I wouldn't worry about it.
Unfortunately some scripts won't work if the output of who(1) shows existing processes. :-(
>JRF: This is not unexpected if your users disconnect from your server by abortively
This is completely unexpected if you assume the OS is robust. :-(
It is the OS's job to keep track of resources.
>less so, seemingly, in current releases.
Yes, it seems adding utmpd(1m) has fixed it.
>Michael: Your /var/adm/syslog/wtmp file may be corrupt.
For logged on users, this info is in the utmp(4) files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2009 06:25 PM
тАО12-23-2009 06:25 PM
Re: Users being shown as still logged on
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2009 07:13 PM
тАО12-23-2009 07:13 PM
Re: Users being shown as still logged on
I have the same problem too, users have not log-off properly or sometime network due to network intermittent. I have "who -q" or "last
And because we only allow our user single login (no simultaneous login), this cause them NO LONGER able to login unless we can clear it from the system and the only way is to reboot, or enable multilogin to the userID.
But is there any another way beside that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-24-2009 01:01 AM
тАО12-24-2009 01:01 AM
Re: Users being shown as still logged on
You should really create your own thread so you can assign points. It also depends on your OS version.
You can use the "Forums advanced search" to search for my name and utmp under HP-UX.
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1316098
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1378410
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1327311
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1327261
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1227594
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1339685
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-24-2009 01:09 AM
тАО12-24-2009 01:09 AM
Re: Users being shown as still logged on
If users connections are throuh ssh , i beleive this could be ssh issue.I guess some of the old version of ssh had this kind of problem.
Javed