- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: delete old entries in who -u
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
тАО04-15-2010 04:36 PM
тАО04-15-2010 04:36 PM
delete old entries in who -u
which file contains the information of who -u
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2010 06:15 PM
тАО04-15-2010 06:15 PM
Re: delete old entries in who -u
From man as well:
"-u Lists only those users who are currently logged
in. name is the user's login name. line is the
name of the line as found in the directory /dev.
The time field indicates when the user logged in."
Why you need to remove? What old entries you are getting? Are they not logged in? Kill their session if you want to close them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2010 03:05 AM
тАО04-16-2010 03:05 AM
Re: delete old entries in who -u
For 11.11, it is in /etc/utmp.
The simple solution is reboot.
>Anshumali: Why you need to remove? What old entries you are getting? Are they not logged in?
Because the design of utmp(4) is broken and lets dead entries stay there in some cases.
The whole sad story:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1378410
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1275160
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1316098
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1301607
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1417117
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1322368
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1395924
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1268078
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1290176
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2010 03:17 AM
тАО04-16-2010 03:17 AM
Re: delete old entries in who -u
After killing those process if they dont vanish then you need to reboot the server.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2010 09:25 AM
тАО04-17-2010 09:25 AM
Re: delete old entries in who -u
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2010 10:11 AM
тАО04-17-2010 10:11 AM
Re: delete old entries in who -u
Sounds like you may need to talk to someone that does then.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2010 10:51 PM
тАО04-17-2010 10:51 PM
Re: delete old entries in who -u
I assume you ave root?
Again, what HP-UX version are you running?
What is more important, having who -u working right or spending time for reboot?
Or spending lots of time looking at all of those threads to pick what works?
Or possibly writing a program to fix the utmp files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2010 05:44 PM
тАО04-20-2010 05:44 PM
Re: delete old entries in who -u
See:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1322368