- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: commando LAST displays that users still logged...
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
07-05-2006 08:06 PM
07-05-2006 08:06 PM
commando LAST displays that users still logged in, but they ain´t
the commando last display that user "still logged in" but their is no user realy logged on the machine.
for example: ".... Wed Jul 5 07:33 still logged in"
Can i restart a daemon that resolves that problem ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 08:11 PM
07-05-2006 08:11 PM
Re: commando LAST displays that users still logged in, but they ain´t
last does not report who is logged in. who does.
last shows successful logins. Its a record of the successful logins from /var/adm/wtmp from oldest to newest.
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
07-05-2006 08:12 PM
07-05-2006 08:12 PM
Re: commando LAST displays that users still logged in, but they ain´t
Check the output of last against who. If the user is still in who, then its one solution. If the user is really logged out its something different.
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
07-05-2006 08:13 PM
07-05-2006 08:13 PM
Re: commando LAST displays that users still logged in, but they ain´t
/usr/sbin/acct/fwtmp < /var/adm/wtmp > /tmp/xx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 08:30 PM
07-05-2006 08:30 PM
Re: commando LAST displays that users still logged in, but they ain´t
# /usr/lib/acct/fwtmp < /etc/wtmp > foo
2. edit the ascii file by using vi editor
# vi foo
3. then restore the ascii file into the binary wtmp file
# /usr/lib/acct/fwtmp -ic < foo > /etc/wtmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 09:26 PM
07-05-2006 09:26 PM
Re: commando LAST displays that users still logged in, but they ain´t
i cant find any errors in wtmp.
My Problem is that every user is still logged on an this is a problem for my ERP-System Login.
In the attachmant their is an example from the last-commando (the error begins after a system-reboot !!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 10:32 PM
07-05-2006 10:32 PM
Re: commando LAST displays that users still logged in, but they ain´t
who -Hu to see current system logins.
last -R to see previous successful logins.
lastb -R to see previous unsuccessful logins.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 11:16 PM
07-05-2006 11:16 PM
Re: commando LAST displays that users still logged in, but they ain´t
this *shouldn't* happen, so I've not yet heard about 'a daemon to resolve that problem'.
I've similar entries in my log - but with 'remshd'.
Maybe HP should search and make a patch for that. The simplest solution you have already got - edit it.
Maybe there's already a patch?
If this remains a problem for you, I believe you have to engage HP in it.
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 05:31 AM
07-06-2006 05:31 AM
Re: commando LAST displays that users still logged in, but they ain´t
The utmp file is where the who command looks and it can become out of sync with reality when these bad connections occur. utmp is simply tracking logins and logouts and knows nothing about whether the user is actually connected. A login entry is recorded and then later, a logout record may be recorded (or not) into wtmp. And since user programs can write to utmp with system calls, utmp can become corrupted. wtmp can be corrupted the same way as it picks up its loging and logout data from the same source as utmp.
Therefore, who and last are only guesses as to active sessions and should not be used as a reliable indicators. If you reboot, all these bad records are cleared and utmp is rebuilt, at which point, the who command will once again be accurate. For last, you would manually use fwtmp (archaic and cryptic as it is) to manually fix the missing logout records. The ps -u command is accurate for 'real' user sessions.
Bill Hassell, sysadmin