- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Applying Password Policies to All Users
Operating System - Linux
1820553
Members
3769
Online
109626
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
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
тАО11-28-2007 06:13 AM
тАО11-28-2007 06:13 AM
Applying Password Policies to All Users
Hi there --
I recently replaced an existing server with a newer model, and I was able to move the users with their respective passwords onto the new server. The new server is running the Fedora Core 7 distribution.
I want to establish a password policy that has password age at a maximum of ninety (90) days, a minimum number of days required between password changes set to zero (0) days, a warning to password expiration set at fourteen (14) days, and the number of inactivity days over the maximum days before the user's account is disabled also set to zero.
How can I set up the above configuration, and also have it immediately applied to the existing user accounts? Thanks.
I recently replaced an existing server with a newer model, and I was able to move the users with their respective passwords onto the new server. The new server is running the Fedora Core 7 distribution.
I want to establish a password policy that has password age at a maximum of ninety (90) days, a minimum number of days required between password changes set to zero (0) days, a warning to password expiration set at fourteen (14) days, and the number of inactivity days over the maximum days before the user's account is disabled also set to zero.
How can I set up the above configuration, and also have it immediately applied to the existing user accounts? Thanks.
A Journey In The Quest Of Knowledge
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2007 06:55 AM
тАО11-28-2007 06:55 AM
Re: Applying Password Policies to All Users
Under Linux password related utilities and config file(s) comes from shadow password suite.
The /etc/login.defs file can be used to define specific configuration or settings.
This normally contains:
1 . PASS_MAX_DAYS : Maximum number of days a password may be used. If the password is older than this, a password change will be forced.
2. PASS_MIN_DAYS : Minimum number of days allowed between password changes. Any password changes attempted sooner than this will be rejected.
3. PASS_WARN_AGE : Number of days warning given before a password expires. A zero means warning is given only upon the day of expiration, a negative value means no warning is given. If not specified, no warning will be provided.
A typical file would be like this (for your requirement):
cat etc/login.defs
PASS_MAX_DAYS 90
PASS_MIN_DAYS 0
PASS_WARN_AGE 14
The /etc/login.defs file can be used to define specific configuration or settings.
This normally contains:
1 . PASS_MAX_DAYS : Maximum number of days a password may be used. If the password is older than this, a password change will be forced.
2. PASS_MIN_DAYS : Minimum number of days allowed between password changes. Any password changes attempted sooner than this will be rejected.
3. PASS_WARN_AGE : Number of days warning given before a password expires. A zero means warning is given only upon the day of expiration, a negative value means no warning is given. If not specified, no warning will be provided.
A typical file would be like this (for your requirement):
cat etc/login.defs
PASS_MAX_DAYS 90
PASS_MIN_DAYS 0
PASS_WARN_AGE 14
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2007 08:50 AM
тАО11-28-2007 08:50 AM
Re: Applying Password Policies to All Users
You should read this link:
http://www.puschitz.com/SecuringLinux.shtml
Ensure that the parameters are changed in the /etc/login.defs and /etc/default/useradd files.
You can use the "chage" command to apply the settings for existings users.
http://www.puschitz.com/SecuringLinux.shtml
Ensure that the parameters are changed in the /etc/login.defs and /etc/default/useradd files.
You can use the "chage" command to apply the settings for existings users.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
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.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP