Visit Our UNIX and Linux User Community


Increase Password length

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Increase Password length
# 1  
Old 09-16-2009
Data Increase Password length

Hello All,

I am using RHEL 4. Currently maximum password length limit is set to 8 on my system.

Please tell what do i need to change to increase this limit to say 20. I changed the login.defs and included the following line -
"
PASS_MAX_LEN 20
"
but this dint work.

I further modified /etc/pam.d/system-auth file and added there too as-

"
password sufficient /lib/security/$ISA/pam.unix.so nullok maxlen=20 use_authtok md5 shadow
"

but this too doest work.

Can anyone please tell me how to increase the password length.


Thanks and Regards,
Shamik.
# 2  
Old 09-16-2009
Check the /etc/default/security file for system wide settings.
Note that despite the possibility to use more characters, only the first 8 are used.

Regards
# 3  
Old 09-16-2009
Can you please tell in brief what does the following mean -

"Note that despite the possibility to use more characters, only the first 8 are used."

The security directory is present in /etc directory in my system and following are its contents -

console.apps/
access.conf
chroot.conf
console.perms
group.conf
limits.conf
opasswd
pam_env.conf
pam_winbind.conf
time.conf

There is no file called security in /etc/default
# 4  
Old 09-16-2009
Quote:
"Note that despite the possibility to use more characters, only the first 8 are used."
This means:
password hashing uses the first 8 characters of the password, the rest are ignored.
# 5  
Old 09-16-2009
Quote:
Originally Posted by jim mcnamara
This means:
password hashing uses the first 8 characters of the password, the rest are ignored.
I don't get it. My root password is almost twice as long, and mistyping any of the characters after the eighth makes a failed login. Unless this is some odd redhat-specific thing...
# 6  
Old 09-16-2009
A lot of older versions of unix don't support more than 8 characters. HPUX 10.2 for example. Stevens 'Advanced Programming in the UNIX Environment' mentions it as well. Red Hat out of the box hashes a maximum of 8; here is a discussion explaining changing PAM etc. to increase the password length:

Red Hat Knowledgebase: How do I change the default password length?

I have not used RHEL 4 so I assumed this was true.
# 7  
Old 09-25-2009
Quote:
Originally Posted by jim mcnamara
A lot of older versions of unix don't support more than 8 characters. HPUX 10.2 for example. Stevens 'Advanced Programming in the UNIX Environment' mentions it as well. Red Hat out of the box hashes a maximum of 8; here is a discussion explaining changing PAM etc. to increase the password length:

Red Hat Knowledgebase: How do I change the default password length?

I have not used RHEL 4 so I assumed this was true.
on my RHEL5.2

it not work, why ??
===
entry in /etc/pam.d/system-auth
password requisite pam_cracklib.so try_first_pass retry=3 minlen=8
===

Previous Thread | Next Thread
Test Your Knowledge in Computers #228
Difficulty: Easy
According to NetMarketShare, in September 2019 Linux had a 5% global market share of the desktop / laptop computer market.
True or False?

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Increase command length for ksh shell on Redhat Linux

I have a ksh shell script and i need to pass arguments which are generated by data pulled from a database. When the argument to the shell script is too long (about 4000 charecters) the below is the issue observed. I copy the command which is 4000 charecters long from the logs and paste it... (7 Replies)
Discussion started by: mohtashims
7 Replies

2. Shell Programming and Scripting

Flat file-make field length equal to header length

Hello Everyone, I am stuck with one issue while working on abstract flat file which i have to use as input and load data to table. Input Data- ------ ------------------------ ---- ----------------- WFI001 Xxxxxx Control Work Item A Number of Records ------ ------------------------... (5 Replies)
Discussion started by: sonali.s.more
5 Replies

3. UNIX for Advanced & Expert Users

How to increase max username length?

Hi, This is my first post to this site. So kindly forgive if I am writing in a wrong section. My query is that... I want to modify the max username length size. I guess it is 32/64 on CentOS. Now I want to change it to 128. Is there any way to do that? Thanks in advance!! :) (4 Replies)
Discussion started by: ajay303
4 Replies

4. Red Hat

Security Question: Lock after invalid login, Session Lock and Required Minimum Password Length

Hello all, If anyone has time, I have a few questions: How do I do the following in Linux. We are using Red Hat and Oracle Enterprise Linux, which is based on Red Hat too. 1. How to lock the account after a few (like 3) invalid password attempts? 2. How do you lock a screen after 30... (1 Reply)
Discussion started by: nstarz
1 Replies

5. Solaris

Enforcing password length.

I would like to enforce the users to use 15 character passwords. I have edited the /etc/default/passwd and given PASSLENGTH=15. What i noticed is that when user changes the password next time, it will enforce the a 15 character password but during the next logon, it verifies only first 8... (5 Replies)
Discussion started by: uxadmin007
5 Replies

6. AIX

AIX 5.3 userid password length to 6

Hi All, How can I make the password of only two userid with 6 length while others are using regular policy of 8 or more length. Please help. Thanks. (2 Replies)
Discussion started by: itik
2 Replies

7. UNIX for Dummies Questions & Answers

How to increase the maximum record length

Hi, I need to create a file of record length more than 300 characters. But in my unix box, i am able to create a file only with a maximum of 256 characters per record. Is there anyway i can create a file with more than 300 characters in this case? Or How to increase the maximum record... (1 Reply)
Discussion started by: mahish20
1 Replies

8. HP-UX

minimum password length

Dear frnds, how i can make the password 5chs minimum length in hp-ux 11i ? pls help regards (3 Replies)
Discussion started by: jestinabel
3 Replies

9. AIX

password length

hi friends, anybody know how many character of password length in aix5.3? please help me TIA bong (1 Reply)
Discussion started by: bong02
1 Replies

Featured Tech Videos