Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Smile passwd: Module is unknown


    Hi guys

    i just added a user by #useradd rachael

    then when i countered this error when i do #passwd rachael

    Changing password for user rachael.
    passwd: Module is unknown

    Any idea how to solve this? thanks

  2. #2
    Hi
    U can do this if user addition is very urgent..
    if you can edit /etc/passwd then do that ....add an entry to it...

    Kindly see if all your pam modules are present

  3. #3
    hmm.. when i do a #vi /etc/passwd

    rachael is there already.

    hmmm... this is what i get when i do a #vi /var/log/secure

    Feb 25 06:34:15 testbox passwd: PAM _pam_load_conf_file: unable to open /etc/pam.d/pam_cracklib.so
    Feb 25 06:34:15 testbox passwd: PAM unable to dlopen(<*unknown module path*>)
    Feb 25 06:34:15 testbox passwd: PAM [error: <*unknown module path*>: cannot open shared object file: No such file or directory]
    Feb 25 06:34:15 testbox passwd: PAM adding faulty module: <*unknown module path*>
    Feb 25 06:34:15 testbox passwd: PAM (passwd) illegal module type: lcredit=-1
    Feb 25 06:34:15 testbox passwd: PAM pam_parse: expecting return value; [...minlen=8]
    Feb 25 06:34:15 testbox passwd: PAM (passwd) no module name supplied

    Indeed.. the pam_cracklib.so is not at /etc/pam.d/

    i found it in /lib/security/pam_cracklib.so

    any idea? thanks

  4. $spacer_open
    $spacer_close
  5. #4
    Hi

    do u have "passwd" file in /etc/pam.d with the following contents:

    #&#37;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

    If not create it with 644 permissions with user and group as root.

  6. #5
    Quote Originally Posted by blade4383 View Post
    Hi

    do u have "passwd" file in /etc/pam.d with the following contents:

    #%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

    If not create it with 644 permissions with user and group as root.
    i have it.. but the contents are different

    %PAM-1.0
    auth include system-auth
    account include system-auth
    password include pam_cracklib.so retry=3 dcredit=-1 ucredit=-1 ocredit=-1
    lcredit=-1 minlen=8
    password required pam_unix.so md5 remember=4 use_authtok

  7. #6
    oh ya.. thanks alot.. the lines you gave works.. but any idea why the codes i posted above doesnt works?

    thanks in advance

  8. #7
    Ok...

    try using the contents that my file has,..... remember to backup your original file ...

    and then try creating a user... and post the output

  9. #8
    ok good..

    I think that it is using some encryption method and for that it requires pam_cracklib.so....

    what u can do is create a link to ur pam_cracklib.so in /etc/pam.d with the same name...
    and try creating a user..
    see if it works...

  10. #9
    Quote Originally Posted by blade4383 View Post
    ok good..

    I think that it is using some encryption method and for that it requires pam_cracklib.so....

    what u can do is create a link to ur pam_cracklib.so in /etc/pam.d with the same name...
    and try creating a user..
    see if it works...
    tried that.. but doesnt work.. hmm.. izzit becoz i installed selinux?

  11. #10
    Hmmmm... could be

    I have never used SElinux... have u tried uninstalling it...cause it is for increasing the security..like ApArmour in SUSE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •