- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- reset password aging
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
Discussions
Discussions
Forums
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
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-11-2005 12:49 AM
тАО01-11-2005 12:49 AM
reset password aging
That is in SAM, Accounts for Users and Groups -> Modify Security Policies -> [Password Aging Policies]
"Reset Password Age to Zero"
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 12:54 AM
тАО01-11-2005 12:54 AM
Re: reset password aging
This resets aging.
example
passwd -n 7 -x 60 schmobagel
This resets the minimum time between changes to 7 days and the max to 60 days for user schmobagel
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 12:55 AM
тАО01-11-2005 12:55 AM
Re: reset password aging
passwd -n 0 -x 0 "user_name"
man passwd for details.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 01:07 AM
тАО01-11-2005 01:07 AM
Re: reset password aging
# man -k passwd
the following is an example from man page,
Force user2 to establish a new password on the next login which will expire in 70 days and prohibit the user from changing the password until 7 days have transpired:
# passwd -r files -f -x 70 -n 7 user2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 01:27 AM
тАО01-11-2005 01:27 AM
Re: reset password aging
If the system is in trusted mode you can change thro sam if not
use passwd -n 0 -x X The User ID
The number next to n is minimum days and value next to x is maximum days
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 01:46 AM
тАО01-11-2005 01:46 AM
Re: reset password aging
/usr/lbin/modprpw -V
This will reset all login IDs' last successful change date to the current date, essentially zeroing the exipration counter.
If you are running an 11i system, you can man modprpw for all the info. The command exists on 11.0 systems, but there's no man page included.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2018 03:54 AM
тАО08-15-2018 03:54 AM
Re: reset password aging
I realize this is an ancient topic thread but it is the first thing that came up when I Googled for this answer, and I actually don't think any of the responses answered the actual question that was asked - resetting the password age rather than modifying the password aging policy.
The solution I found was to grep the password hash for the user out of /etc/shadow, and then to use "usermod -p '<hash>' '<username>'" to explicitly reset the password hash to this same value. This updated the password age field to current without modifying the user's password.