LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-01-2005, 07:51 PM   #1
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
PAM_cracklib Error, dict error


I am using a Linux From Scratch System and am now busy building additional software with the Beyond Linux From Scratch instructions.

I installed Cracklib, Linux-PAM and Shadow.
While testing PAM I got some errors.
I ran passwd and got this error:
Quote:
passwd: Critical Error - immediate abort
Enabling the debug-feature of pam_cracklib.so I got an extra line of error.
Passwd now returns this:
Quote:
PAM-Cracklib[29810]: dict path ''[.pwd] is invalid
passwd: Critical Error - immediate abort[
I understand that this must be terribly wrong, but luckily I still have a good working Linux-system besides my Linux From Scratch.

Has someone got an idea of what could be wrong.

Thanks in advance for the help,
Hugo

P.S. I hope this is enough information If not, just ask for more.
 
Old 10-01-2005, 09:42 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Take a look at the Makefile for cracklib source. In it you should see a variable defining the path to the cracklib dictionary (DICTPATH "/some/path/to/dictionary"). Make sure that's the correct path. If all went properly during the compile, then it should have created:
/usr/local/lib/pw_dict.pwd
/usr/local/lib/pw_dict.pwi
/usr/local/lib/pw_dict.hwm
Make sure these exist too (note: they can be in /usr/lib/ instead). Also, take a look at the cracklib README for more info.

Last edited by Capt_Caveman; 10-01-2005 at 09:44 PM.
 
Old 10-02-2005, 08:04 AM   #3
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Original Poster
Rep: Reputation: 51
Thanks for the help, but I have figured it out now.

I did as you suggested: looking in the README of cracklib and I specified a DICTPATH to comply with where it already was installed.
I reinstalled Cracklib several times, but that didn't work.

So the fault ought to be in my PAM install.
After searching in the Configure file and editing DICT_CANDIDATES (or something like that) to also include my DICTPATH ,
things work splendid.

I tend to be a bit stupid sometimes. I follow instructions from the BLFS-e-book as I mentioned before.
Making my previous version of PAM I must have mistyped the command to edit DICT_CANDIDATES with sed.

So it works now.
Thanks for the help,
Hugo
 
Old 10-27-2005, 03:02 PM   #4
dagarlas
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
hi, I'm having the same problem; I checked dict path but it seems ok. How can I enable debug feature of cracklib to see more detailed output?
 
Old 03-10-2007, 08:24 AM   #5
mndar
Member
 
Registered: Feb 2005
Posts: 34

Rep: Reputation: 16
ran a little command

I took a text file 'list' put in 'abcd' as its contents and ran the command
create-cracklib-dict list
It worked!!
Must have got something to do with the passwd's feature where it tells you if your password is a dictionary word or not.
 
  


Reply


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
updating new installation of 9.3 ERROR...ERROR...ERROR Morbid SUSE / openSUSE 3 08-15-2005 11:22 PM
Problems with PAM_cracklib options tompower Linux - Security 1 11-03-2004 06:23 PM
NETPERF: ERROR --> send_udp_stream: error on remote: Interrupted system call dravya Linux - General 1 05-29-2004 05:49 PM
ERROR running make when installing Nvidia drivers (syntax error) randyriver10 Linux - Software 5 02-21-2004 04:51 PM
cdrecord inupt/output error. write_g1: scsi sendcmd: no error lucstuk Linux - Software 9 08-09-2003 09:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:16 AM.

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