- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- who showing old user ...date/time
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
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
тАО04-15-2007 06:32 PM
тАО04-15-2007 06:32 PM
I have a rx4640 with hpux 11i v2 when i run w command i see the following o/p...
I m not able to remove user xyz who is still shown as loggeed by system which is back dated..how doi remove this user from this w command o/p...
User tty login@ idle JCPU PCPU what
tej pts/1 11:55am w
f155 pts/3 11:18am 3 -sh
f1v56 pts/6 11:58am more -s
xyz pts/12 5:23pm399:05 -
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2007 07:59 PM
тАО04-15-2007 07:59 PM
Solutioncheck your utmp, wtmp files as they may hold old information.
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2007 11:25 PM
тАО04-15-2007 11:25 PM
Re: who showing old user ...date/time
The file is /var/adm/wtmp
To remove the the xyz user you need to modify the binary file wtmp. Please follow the below procedur.
1-Make a backup copy of your wtmp to wtmp.bkp
2 -Here we are using fwtmp tool to convert the binary wtmp.bkp to text file (wtmp.txt). Be careful about the redirections.
/usr/lib/acct/fwtmp < wtmp.bkp > wtmp.txt
3 - Edit whatever you want in wtmp.txt
vi wtmp.txt
(Remove the xyz user)
4- Convert back the modified wtmp.txt file back to original wtmp
/usr/lib/acct/fwtmp -ic < wtmp.txt > wtmp
You are done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2007 11:35 PM
тАО04-15-2007 11:35 PM
Re: who showing old user ...date/time
For the currently logged in users, the file is /etc/utmp
Just do the above steps with /etc/utmp
*(always do a backup of the original)
Convert bin to txt
Edit the the txt file
Convert back to /etc/utmp
That is all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2007 02:21 AM
тАО04-16-2007 02:21 AM