Re: [Bug 278743] Re: libpam-cracklib cannot find cracklib_dict.pwd after install

2008-10-16 Thread Jan Dittberner
On Thu, Oct 16, 2008 at 01:09:38AM -, Steve Langasek wrote: Hi Jan, Since you're subscribed to this bug, I'll post the debdiff here rather than filing a new one in the Debian BTS, if that's ok with you. :) The problem is a subtle bashism in update-cracklib, and this patch fixes it for

Re: [Bug 278743] Re: libpam-cracklib cannot find cracklib_dict.pwd after install

2008-10-16 Thread Steve Langasek
On Thu, Oct 16, 2008 at 07:00:40AM -, Jan Dittberner wrote: On Thu, Oct 16, 2008 at 01:09:38AM -, Steve Langasek wrote: Since you're subscribed to this bug, I'll post the debdiff here rather than filing a new one in the Debian BTS, if that's ok with you. :) The problem is a subtle

[Bug 278743] Re: libpam-cracklib cannot find cracklib_dict.pwd after install

2008-10-15 Thread Jan Dittberner
You're right, update-cracklib is called in postinst. update-cracklib fails if /etc/cracklib/cracklib.conf doesn't exist: if [ -r /etc/cracklib/cracklib.conf ] then . /etc/cracklib/cracklib.conf else echo Error: cannot read configuration file /etc/cracklib/cracklib.conf exit 1 fi

[Bug 278743] Re: libpam-cracklib cannot find cracklib_dict.pwd after install

2008-10-15 Thread Martin Pitt
Zin Slan, what does ls -l /usr/share/dict dpkg -l |grep /usr/share/dict show you? How did you install this system? ** Changed in: cracklib2 (Ubuntu) Status: New = Incomplete -- libpam-cracklib cannot find cracklib_dict.pwd after install https://bugs.launchpad.net/bugs/278743 You

[Bug 278743] Re: libpam-cracklib cannot find cracklib_dict.pwd after install

2008-10-15 Thread Zin Slan
$ ls -l /usr/share/dict total 1825 -rw-r--r-- 1 root root 931467 2008-07-04 01:20 american-english -rw-r--r-- 1 root root 929603 2008-07-04 01:20 british-english -rw-r--r-- 1 root root199 2008-06-04 10:18 README.select-wordlist lrwxrwxrwx 1 root root 30 2008-10-03 12:38 words -

[Bug 278743] Re: libpam-cracklib cannot find cracklib_dict.pwd after install

2008-10-15 Thread Launchpad Bug Tracker
This bug was fixed in the package cracklib2 - 2.8.12-2ubuntu1 --- cracklib2 (2.8.12-2ubuntu1) intrepid; urgency=low * debian/update-cracklib: don't rely on [ -nt ] to return true when the second file is non-existent, since this fails under dash. LP: #278743. -- Steve

[Bug 278743] Re: libpam-cracklib cannot find cracklib_dict.pwd after install

2008-10-15 Thread Steve Langasek
Hi Jan, Since you're subscribed to this bug, I'll post the debdiff here rather than filing a new one in the Debian BTS, if that's ok with you. :) The problem is a subtle bashism in update-cracklib, and this patch fixes it for me. ** Attachment added: cracklib2-278743.debdiff

[Bug 278743] Re: libpam-cracklib cannot find cracklib_dict.pwd after install

2008-10-14 Thread Jan Dittberner
The bug may occur if no dictionary is installed at the system or update- cracklib has not been called at least once. The post-install script of cracklib-runtime should call update-cracklib for this purpose. Cracklib- runtime contains a cron.daily job that calls update-cracklib, but postinst should

Re: [Bug 278743] Re: libpam-cracklib cannot find cracklib_dict.pwd after install

2008-10-14 Thread Steve Langasek
On Tue, Oct 14, 2008 at 12:12:34PM -, Jan Dittberner wrote: The bug may occur if no dictionary is installed at the system or update- cracklib has not been called at least once. The post-install script of cracklib-runtime should call update-cracklib for this purpose. Cracklib- runtime

[Bug 278743] Re: libpam-cracklib cannot find cracklib_dict.pwd after install

2008-10-05 Thread Steve Langasek
I saw this problem once, but afterwards was not able to reproduce it. It's a bug in cracklib2 rather than in pam; libpam-cracklib depends on cracklib-runtime, which should take care of setting this all up at install time. Hopefully someone who knows more about the cracklib package can debug this.