- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- "who" command shows people not actually logged in.
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-09-2003 08:10 AM
10-09-2003 08:10 AM
When I issue the "who" command (and I just had to reboot the machine) it lists people that are not connected to the machine. It shows them all as accessing the machine thru pts/ta.
Any ideas as to what is going on here?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 08:30 AM
10-09-2003 08:30 AM
Re: "who" command shows people not actually logged in.
run this command to see the contents:
strings /etc/utmp
Ted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 08:32 AM
10-09-2003 08:32 AM
Solution# cat /dev/null > /var/adm/wtmp
I kinda of like using SAM for this. It's about the only time I ever use SAM. Other system logs can be trimmed at the same time.
Test wtmp and utmp with 'last' and 'finger'.
# last id / account / user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 09:13 AM
10-13-2003 09:13 AM
Re: "who" command shows people not actually logged in.
Sounds like a corrupt wtmp file.
You can use sam to trim this file to zero, but users will need to be off the system as the file will be in use. Alternatively you can use sam to trim it to a new temporary file.
The easiest solution is to copy a null file over the top of it. eg
cp /dev/null /var/adm/wtmp
This will empty the fileand should clear the problem.
Hope this helps.
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 09:43 AM
10-13-2003 09:43 AM
Re: "who" command shows people not actually logged in.
Clean out and check permissions on wtmp
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com