Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-07-2010, 04:05 PM   #1
Registered: Apr 2009
Posts: 74

Rep: Reputation: 16
Unhappy Lost in common-passwd PAM configuration (Ubuntu 10.04)

Recently installed some application which screwed the default common-passwd file and has put some restrictions on the passwords which I could set

The present file looks like this

#password required min=disabled,8,8,8,8 passphrase=0 enforce=users
password  required min=1,0,0,0,0 passphrase=0 enforce=none random=0
#password sufficient remember=8 nullok_secure use_authtok sha512 shadow
password  sufficient remember=0 nullok_secure use_authtok sha512 shadow
password  [success=2 default=ignore] obscure use_authtok try_first_pass sha512
password  [success=1 default=ignore] use_authtok try_first_pass
# here's the fallback if no module succeeds
password  requisite
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
password  required
# and here are more per-package modules (the "Additional" block)
password  optional
password  optional
# end of pam-auth-update config
I tried to change some restrictions (as seen in first 2 lines) but I am still unable to remove the restrictions
Basically, I need to allow any kind of password(even a single character) and remove any restrictions but 'passwd' command complains of 'length' all the time

Any help would be greatly appreciated. Have spent the whole day searching over the net but no success
Old 09-07-2010, 04:24 PM   #2
Registered: Apr 2009
Posts: 74

Original Poster
Rep: Reputation: 16
Also want to add that I have tried removing the 'obscure' keyword as well but didn't help
Since it's a test system which is purely on private IP and get's reOs'ed every other day, I don't have any issues with a single character password. Moreover, it helps in writing test script


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PAM module:passwd:- how many character validate by pam library amit_pansuria Linux - General 3 10-21-2008 02:19 AM
Swat uses PAM but changes linux passwd not samba passwd Peter@KKVS Linux - Networking 0 11-26-2006 05:20 AM
RHEL4 Upgrade 3 /etc/pam.d/common-account needed? newbie_ned Red Hat 4 11-13-2006 03:16 PM
/etc/pam.d/passwd leandrop Linux - Security 1 09-30-2003 02:06 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration