Results 1 to 10 of 11
Thread: passwd: Module is unknown
|
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
02-25-2008 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 27
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
-
02-25-2008 #2Just Joined!
- Join Date
- Feb 2008
- Posts
- 67
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
-
02-25-2008 #3Just Joined!
- Join Date
- Feb 2008
- Posts
- 27
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
-
02-25-2008 #4Just Joined!
- Join Date
- Feb 2008
- Posts
- 67
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.
-
02-25-2008 #5Just Joined!
- Join Date
- Feb 2008
- Posts
- 27
-
02-25-2008 #6Just Joined!
- Join Date
- Feb 2008
- Posts
- 27
oh ya.. thanks alot.. the lines you gave works.. but any idea why the codes i posted above doesnt works?
thanks in advance
-
02-25-2008 #7Just Joined!
- Join Date
- Feb 2008
- Posts
- 67
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
-
02-25-2008 #8Just Joined!
- Join Date
- Feb 2008
- Posts
- 67
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...
-
02-25-2008 #9Just Joined!
- Join Date
- Feb 2008
- Posts
- 27
-
02-25-2008 #10Just Joined!
- Join Date
- Feb 2008
- Posts
- 67
Hmmmm... could be
I have never used SElinux... have u tried uninstalling it...cause it is for increasing the security..like ApArmour in SUSE


Reply With Quote
