- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lastlogin file
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
04-28-2004 03:56 PM
04-28-2004 03:56 PM
I want to know the information about lastlogin date and time for every users. My system is not in trusted mode.
other flavour of unix has lastlogin file whihc keep track of this bur i could not locate same in hp ux 11.11.
Is there anyfile like this in HP UX ?
Sunil
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2004 04:10 PM
04-28-2004 04:10 PM
Re: lastlogin file
Also, I think on a system in untrusted mode you could check the syslog file and search for login.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2004 04:36 PM
04-28-2004 04:36 PM
Re: lastlogin file
# lastb -R
see man lastb
Read about /var/adm/wtmp and /var/adm/btmp
This two file contains information of Logins and they can even provide you with the IP addresses from where users logs in.
This is very important if you want to trace any user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2004 05:35 PM
04-28-2004 05:35 PM
Re: lastlogin file
wtmp file give the historical data about user activity.
lastlog file give information about only last activiy of user.
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2004 05:45 PM
04-28-2004 05:45 PM
Re: lastlogin file
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2004 08:59 PM
04-28-2004 08:59 PM
SolutionAs far as I'm aware there is no direct equivalent to u_suclog on an untrusted system. Unless you want to add a line to /etc/profile to touch a file for each user in a specific directory I'd suggest you use the output from last and use grep and head to get only the latest value for each user.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2004 10:05 PM
04-28-2004 10:05 PM
Re: lastlogin file
This might not be what you're looking for and it's probably not very accurate, but take a look at the finger command:
yukon(13)root# finger lld
Login name: llc In real life: Larry Dumstom
Bldg: acct1_hp405
Directory: /nfs/yukon/home/lld Shell: /bin/ksh
On since Apr 29 06:04:29 on dtremote from yukon
Pete
Pete