- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- duplicate lines in 'last' output
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
12-20-2006 12:18 AM
12-20-2006 12:18 AM
duplicate lines in 'last' output
while inspecting output of `last' command we've met some strange duplicating lines. for example:
svista pts/28 Wed Dec 20 13:27 still logged in
svista pts/28 Wed Dec 20 13:19 still logged in
how can user be logged in on same terminals two times?
btw, `w' and co. shows only one login on pts/28 - the first one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2006 12:28 AM
12-20-2006 12:28 AM
Re: duplicate lines in 'last' output
May be user, who logged from pts/28, started another login process and this fact was registered? What applications this user started?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2006 12:28 AM
12-20-2006 12:28 AM
Re: duplicate lines in 'last' output
This behavior is not unexpected, particularly if a connection is severed abnormally (for exmaple, a user reboots a PC-based connection).
The login database represented by '/var/adm/wtmp' needs to be updated when a login begins and when it ends. Without a record of a session termination, the deduction is that the user is "still logged in".
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2006 01:18 AM
12-20-2006 01:18 AM
Re: duplicate lines in 'last' output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2006 01:34 AM
12-20-2006 01:34 AM
Re: duplicate lines in 'last' output
Please see fwtmp(1M).
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2006 01:34 AM
12-20-2006 01:34 AM
Re: duplicate lines in 'last' output
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2006 01:48 AM
12-20-2006 01:48 AM
Re: duplicate lines in 'last' output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2006 01:54 AM
12-20-2006 01:54 AM
Re: duplicate lines in 'last' output
I wouldn't say that it's "normal", but it's certainly not uncommon. Your /var/adm/wtmp database is a little corrupt. Not a big deal.
Clobber the file with '> /var/adm/wtmp' to reset. Otherwise, if you feel like repairing it, see this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1070468
PCS