- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: extract last logins
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
01-15-2009 05:34 AM
01-15-2009 05:34 AM
extract last logins
Can Any one explain how to Extract a list for "lastlogon" (-L). Disable accounts for user that have not logged on in 30 days. Delete accounts that have not logged on in 120 days. (Obtain signature from Security Manager to delete inactive accounts).
let me know its urgent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2009 05:44 AM
01-15-2009 05:44 AM
Re: extract last logins
to know the lastlogons u can use the commands as
#last
and
#lastb
Regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2009 05:48 AM
01-15-2009 05:48 AM
Re: extract last logins
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2009 05:59 AM
01-15-2009 05:59 AM
Re: extract last logins
try giving the
#last
#lastb
hope so
i do not have a running system right infront of me , but u can see the amn page for the last command
#man last
Regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2009 06:06 AM
01-15-2009 06:06 AM
Re: extract last logins
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2009 06:57 AM
01-15-2009 06:57 AM
Re: extract last logins
u can see for many users like this
#last root user1 user2
like that
Please do not forget assignibg the points
regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2009 08:09 AM
01-15-2009 08:09 AM
Re: extract last logins
what O/S is *that* for, as it doesn't appear to be std hpux. Active Directory integration?
last and lastb will show the login info for everything in the utmp / wtmp files. if those have been cleaned out within the last 120 days, you won't be able to find the information you are looking for.
as with your other post, you seem to be asking how your can comply with auditor's requests?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2009 08:31 AM
01-15-2009 08:31 AM
Re: extract last logins
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2009 09:09 AM
01-15-2009 09:09 AM
Re: extract last logins
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2009 09:36 AM
01-15-2009 09:36 AM
Re: extract last logins
Is this command used in HP-UX ??
Please post your queries in right forum in case if your query is other then HP-UX Operating System
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2009 09:39 AM
01-15-2009 09:39 AM
Re: extract last logins
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2009 09:43 AM
01-15-2009 09:43 AM
Re: extract last logins
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2009 09:51 AM
01-15-2009 09:51 AM
Re: extract last logins
i believe, but won't guarantee, that if that is true, you need to examine the AD server and not the individual unix boxes, as they may have nothing on them......
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2009 10:48 PM
01-16-2009 10:48 PM
Re: extract last logins
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2009 04:28 AM
01-17-2009 04:28 AM
Re: extract last logins
Are you refering to all User accounts ..? are specfic User..?
last -R
(above command will show all the last login details for User1& user2. same like you can specfy all you user accounts append to file /tmp/loastlogin.txt.
Hope this helps,
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2009 04:44 AM
01-17-2009 04:44 AM
Re: extract last logins
I got that and i need who never login for 30 days in one shot..how to specify with command ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2009 08:50 AM
01-18-2009 08:50 AM
Re: extract last logins
to which you replied:
"I got that and i need who never login for 30 days in one shot..how to specify with command .."
What you "need" (or want) -vs- what commands are builtin can always be two separate things...in this case, you need to construct a script that reads the list of users from /etc/passwd and executes the snippet JP provided for each of them....
the construction of that script, as well as filtering the results to obtain the required information is left as an excercise for the student.