- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How are refreshed the files /etc/utmp
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
03-30-2004 03:39 AM
03-30-2004 03:39 AM
How are refreshed the files /etc/utmp
who used with option -u should display only the session corresponding to the users connected on the Box.
However it appears sometimes that the result of 'who -u' does not correspond to the reality : some users appear to be connected while there are not. In this case the user appears to be connected but to process is linked to this user.
It happened performing the following :
1 - Check the user connected on the box : `who -u`
user1 pts/40 2:57pm 25 -ksh
user2 pts/41 3:02pm 13 -ksh
2 - kill the process ran by user1 and associated to the user
3 - Check again the user connected : `who -u`
Only user1 is connected while is still referenced in /etc/utmp even if no more process is linked to this.
user1 pts/40
user2 pts/41 3:02pm 13 -ksh
It is like is the tty could not be closed.
This can be an big issue if the tty are not closed because it may prevent users to connect a box as the maximum tty number is reached.
Does someone know how are refreshed /etc/utmp infos files ?
Does someone know how to force a tty to be closed ?
Did someone ever encountered this issue ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 03:45 AM
03-30-2004 03:45 AM
Re: How are refreshed the files /etc/utmp
The /etc/inittab entries can be used to clear the utmp at reboot:
utm1::sysinit:> /etc/utmp utm2::sysinit:> /etc/utmpx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 03:47 AM
03-30-2004 03:47 AM
Re: How are refreshed the files /etc/utmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 03:51 AM
03-30-2004 03:51 AM
Re: How are refreshed the files /etc/utmp
Playing with the /etc/utmp area is not something I would recommend, nor will it solve the problem.
Not all patches require a reboot. Get the patches, read the notes and see if you can install them on the fly.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 03:57 AM
03-30-2004 03:57 AM
Re: How are refreshed the files /etc/utmp
pkill -t tty
Do you know if any other tool is available for HP ?
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 04:42 AM
03-30-2004 04:42 AM
Re: How are refreshed the files /etc/utmp
There should be enough information in /etc/utmp to let you do that.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 08:51 AM
03-30-2004 08:51 AM
Re: How are refreshed the files /etc/utmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 02:46 AM
03-31-2004 02:46 AM