- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Not able to kill the logins
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-21-2008 11:00 PM
05-21-2008 11:00 PM
thanks in advance...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2008 11:11 PM
05-21-2008 11:11 PM
SolutionThese users aren't logged in, if utmps is corrupted, then who(1) will lie to you.
>heard that if we edit wtmp then its possible
You can just reset the file with "> /var/adm/wtmps".
If you want to save the date, you have to edit it after using fwtmp(1M).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2008 11:30 PM
05-21-2008 11:30 PM
Re: Not able to kill the logins
You can see which users still login with PID using
#who -u
But it happens when a user logout unexpectedly or don't logout using exit command. then the user's login histry you see in who -a output.
you can alos verify if the user still in use try command
#ps -fu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2008 11:33 PM
05-21-2008 11:33 PM
Re: Not able to kill the logins
since its binary file.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2008 12:02 AM
05-22-2008 12:02 AM
Re: Not able to kill the logins
Look at fwtmp(1M). Basically:
# /usr/sbin/acct/fwtmp -X < /var/adm/wtmps > wtmps.txt
edit wtmps.txt
# /usr/sbin/acct/fwtmp -icX < wtmps.txt > /var/adm/wtmps