- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How set password expiry date
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
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
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-11-2012 12:40 AM
03-11-2012 12:40 AM
How set password expiry date
How to set or update user expiry date of password
- Tags:
- passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2012 12:58 AM
03-11-2012 12:58 AM
Re: How set password expiry date
Hi,
You can use command.
passwd -n 7 -x 70 -w 14 username
This will not allow the user to change its password within 7days, maximum validity of password 70 days and give a warning to change password before 14days of expiring.
You can change the parameter according to your needs.
regards
Syed
*** please click on kudos if my post helps you..!!!!
Syed
- Tags:
- passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2012 01:06 AM
03-11-2012 01:06 AM
Re: How set password expiry date
Option -w is disabled. You must enable shadow passwords
passwd -n 7 -x 70 gz
<min> argument rounded up to nearest week
<max> argument rounded up to nearest week
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2012 01:12 AM
03-11-2012 01:12 AM
Re: How set password expiry date
Hi ,
Its ok.
-w will work only when /etc/shadow is enable.
You can check now user status by command
passwd -s username
regards
Syed
Syed