- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Stale Accounts on HP-UX Systems
Operating System - HP-UX
1753929
Members
8633
Online
108810
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО08-10-2006 04:19 AM
тАО08-10-2006 04:19 AM
Stale Accounts on HP-UX Systems
How would you finds accounts that has not been used in 3 to 6 months .Is there a way to use sam and get that report.
Thanks for all your help.
Thanks for all your help.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 04:28 AM
тАО08-10-2006 04:28 AM
Re: Stale Accounts on HP-UX Systems
use last command to read from /var/adm/wtmp assuming it is having a valid data to see users logged from when and where?
use lastb command to check unsuccessful logins which reads from /var/adm/btmp.
use lastb command to check unsuccessful logins which reads from /var/adm/btmp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 04:35 AM
тАО08-10-2006 04:35 AM
Re: Stale Accounts on HP-UX Systems
If your system is trusted you can use 'getprpw' to get the last successful login time for the users.
# /usr/lbin/getprpw -m slogint
# /usr/lbin/getprpw -m slogint root
slogint=Thu Aug 10 11:35:15 2006
From here you should be able to script something to do what you require.
# /usr/lbin/getprpw -m slogint
# /usr/lbin/getprpw -m slogint root
slogint=Thu Aug 10 11:35:15 2006
From here you should be able to script something to do what you require.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 09:17 AM
тАО08-10-2006 09:17 AM
Re: Stale Accounts on HP-UX Systems
I use a script that I can supply options to like "expired" or "never".
It basically uses the getprpw command to get whatever account information is needed.
getprpw is the most usefull way to go.
The list of -m options are in the man pages.
Have Fun.
It basically uses the getprpw command to get whatever account information is needed.
getprpw is the most usefull way to go.
The list of -m options are in the man pages.
Have Fun.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP