- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Password ageing
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
03-19-2008 09:46 AM
03-19-2008 09:46 AM
Can you please help me to find the password ageing for all the users in HP UX .
Example in Solaris we use the /etc/shadow file to check the ageing of user account.
Thanks
Woodman
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2008 10:04 AM
03-19-2008 10:04 AM
Solutionpasswd -s -a
will return something like
l00s7m PS 01/31/08 14 56
which indicates passwd set (PS) on 01/31/08, can't change it in less than 14 days, and must change it by 56 days.
"man passwd" for more info
for trusted systems:
man getprpw, modprw, modprdef and getprdef for more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2008 10:06 AM
03-19-2008 10:06 AM
Re: Password ageing
Look at the 'logins' command; specifically the '-x' switch output:
http://docs.hp.com/en/B3921-60631/logins.1M.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2008 10:06 AM
03-19-2008 10:06 AM
Re: Password ageing
So use the passwd -s
passwd -s billh
billh PS 03/03/08 21 35 7
where 21=days before change is allowed, 35=days until expiration, 7=days when warnings start.
From the passwd man page:
The format of the display will be:
name status mm/dd/yy min max warn
or, if password aging information is not present:
name status
where status means: PS =passworded; LK =locked; and NP=no password.
This works for all types of security methods. To get a list of all users:
for MYID in $(cut -f1 -d: /etc/passwd)
do
passwd -s $MYID
done
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2008 10:40 AM
03-19-2008 10:40 AM