- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: who command show stale logins
Operating System - HP-UX
1753814
Members
7774
Online
108805
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО09-06-2006 03:48 PM
тАО09-06-2006 03:48 PM
who command show stale logins
Hi,
When I run who, I'm showing a ton of stale logins. Most have come from ssh logins it seems (pts). When I log in again, it reclaims one of the stale login pts, so I don't think this is a danger of running out of PTSs.
However the who is out of date, so that is quite annoying to see 60 logged in users, but only have about 10.
I haven't done a lot of narrowing down, since if this is a common problem I'm sure someone else has seen it and maybe has a quick suggestion or answer. But if needed I can experiment some more.
Thanks!
David
When I run who, I'm showing a ton of stale logins. Most have come from ssh logins it seems (pts). When I log in again, it reclaims one of the stale login pts, so I don't think this is a danger of running out of PTSs.
However the who is out of date, so that is quite annoying to see 60 logged in users, but only have about 10.
I haven't done a lot of narrowing down, since if this is a common problem I'm sure someone else has seen it and maybe has a quick suggestion or answer. But if needed I can experiment some more.
Thanks!
David
- Tags:
- who
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2006 04:00 PM
тАО09-06-2006 04:00 PM
Re: who command show stale logins
May be corrupted /var/adm/utmp file. You can just null it out. (You can also use fwtmpfix command to fix it.)
> /var/adm/wtmp
who
> /var/adm/wtmp
who
There is no substitute to HARDWORK
- Tags:
- utmps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2006 04:09 PM
тАО09-06-2006 04:09 PM
Re: who command show stale logins
The who command at best is an approximation and is only and good as the underlying wtmp/utmp files. If this botherws you you can use the fwtmp command the read the binary file out as text, clean up the bogus entries, and then use the fwtmp command again to read the edited text file out as a binary. Because the who output should really never be trusted, it's really better to use the ps command to determine who is on your system. Man fwtmp for details.
If it ain't broke, I can fix that.
- Tags:
- fwtmp
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP