- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- password must be atleast 12 characters long -- how...
Operating System - Linux
1753872
Members
7411
Online
108809
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
Go to solution
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
тАО12-03-2004 06:15 AM
тАО12-03-2004 06:15 AM
How can I configure/set/implement the minimum lenght of password ?
I did the following
in /etc/login.defs
PASS_MIN_LEN 12
But it doesnt work, i.e. even now users can set their password of only 6 characters.
And what I want is that password must be atleast 12 characters long.
Thanks In Advance
Regards
Maaz
I did the following
in /etc/login.defs
PASS_MIN_LEN 12
But it doesnt work, i.e. even now users can set their password of only 6 characters.
And what I want is that password must be atleast 12 characters long.
Thanks In Advance
Regards
Maaz
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2004 07:37 AM
тАО12-03-2004 07:37 AM
Re: password must be atleast 12 characters long -- how ?
Add minlen=12 at the line begining with password in /etc/pam.d/passwd if you have a line like the below:
password required pam_unix.so nullok md5 shadow minlen=12
Chris
password required pam_unix.so nullok md5 shadow minlen=12
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2004 07:44 AM
тАО12-03-2004 07:44 AM
Solution
Sorry I think I gave your incorrect info. Here is the right answer to achieve minimun 12 chars in password.
Your /etc/pam.d/passwd should look like:
auth required pam_stack.so service=system-auth
account required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth
In your /etc/pam.d/system-auth file, add this minlen=12 to the line like below:
password required /lib/security/$ISA/pam_cracklib.so retry=3 type=
So your modified line should look like:
password required /lib/security/$ISA/pam_cracklib.so retry=3 type= minlen=12
Chris
Your /etc/pam.d/passwd should look like:
auth required pam_stack.so service=system-auth
account required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth
In your /etc/pam.d/system-auth file, add this minlen=12 to the line like below:
password required /lib/security/$ISA/pam_cracklib.so retry=3 type=
So your modified line should look like:
password required /lib/security/$ISA/pam_cracklib.so retry=3 type= minlen=12
Chris
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