![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Terminal-specific characters in password | PittWolfBW | Shell Programming and Scripting | 5 | 04-07-2008 07:08 AM |
| Password without numeric characters | drchris | SUN Solaris | 3 | 01-18-2008 11:04 AM |
| verify sudo password | mdpalow | Shell Programming and Scripting | 0 | 12-20-2007 10:53 PM |
| How to echo password characters | mukluk | UNIX for Dummies Questions & Answers | 4 | 09-12-2005 07:34 AM |
| user Id vs Password | Cerberus | UNIX for Dummies Questions & Answers | 2 | 09-26-2001 04:03 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
password verification verify password of a user for only first 8 characters
Helo ,
I m using linux pam library for user and its password authentication. I m creating new user and giving its password.I m giving password of 10 characters.now when I login in as that newly created user its ask me $ su - ram Password: You are required to change your password immediately (root enforced) Changing password for ram (current) UNIX password: I m giving my current passwd (new) Password : I m giving my new passwd of 10 characters. Now i m log off and again login as that user Now when I give my password more only first 8 characters then also It allows me to login how come this happen? I also observed that it verify the password for first 8 characters. can you tell me how to overcome this problem. Regards, Amit |
|
||||
|
Quote:
I have check thhe entry of file passwd in /etc/pam.d . the entrty for this is: #%PAM-1.0 auth required pam_stack.so service=system-auth account required pam_stack.so service=system-auth password required pam_stack.so service=system-auth so how do I change passwd limit |
|
||||
|
Quote:
#%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next time authconfig is run. auth required /lib/security/$ISA/pam_env.so auth sufficient /lib/security/$ISA/pam_unix.so likeauth nullok auth required /lib/security/$ISA/pam_deny.so account required /lib/security/$ISA/pam_unix.so account sufficient /lib/security/$ISA/pam_succeed_if.so uid < 100 quiet account required /lib/security/$ISA/pam_permit.so password requisite /lib/security/$ISA/pam_cracklib.so retry=3 password sufficient /lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow password required /lib/security/$ISA/pam_deny.so session required /lib/security/$ISA/pam_limits.so session required /lib/security/$ISA/pam_unix.so |
|
|||||
|
Sorry buddy for the delayed response. Can you do an ls -l on this dir:
/etc/pam.d I'm looking for /etc/pam.d/common-password file. Anyhow, I'm guessing that this line in /etc/pam.d/system-auth may be the key: Code:
password sufficient /lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow -Nitin |
|
|||||
|
I think I'm pretty sure that you can set the password limit here, in your /etc/pam.d/login file (you will have to add this line below):
Code:
password required pam_unix.so nullok obscure min=4 max=8 -Nitin ![]() |
|
||||
|
Quote:
/etc/pam.d/passwd file contains following(its passwd file not common-passwd) #%PAM-1.0 auth required pam_stack.so service=system-auth account required pam_stack.so service=system-auth password required pam_stack.so service=system-auth #%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next time authconfig is run. auth required /lib/security/$ISA/pam_env.so auth sufficient /lib/security/$ISA/pam_unix.so likeauth nullok auth required /lib/security/$ISA/pam_deny.so account required /lib/security/$ISA/pam_unix.so account sufficient /lib/security/$ISA/pam_succeed_if.so uid < 100 quiet account required /lib/security/$ISA/pam_permit.so password requisite /lib/security/$ISA/pam_cracklib.so retry=3 password sufficient /lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow password required /lib/security/$ISA/pam_deny.so session required /lib/security/$ISA/pam_limits.so session required /lib/security/$ISA/pam_unix.so My problem is that suppose create a user and give a 12 character password . It will accept this password. But when I logg off and again login and now I give first 8 character then only It will accept password. So it menas it validates only first 8 character. yr help will be highly appreciated. Regards, Amit A |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|