Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17087 - passwd fails in cracklib on good passwords, cracklib dictionary problem
Summary: passwd fails in cracklib on good passwords, cracklib dictionary problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-08 10:22 UTC by Antanas Kompanas
Modified: 2003-03-10 06:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
extra.words file in miscfiles-1.3 (miscfiles-1.3.diff,637 bytes, patch)
2003-03-08 10:31 UTC, Antanas Kompanas
Details | Diff
extra.words file in miscfiles-1.3 (miscfiles-1.3.diff,637 bytes, patch)
2003-03-08 10:32 UTC, Antanas Kompanas
Details | Diff
applies miscfiles-1.3.diff patch (miscfiles-1.3.ebuild.diff,272 bytes, patch)
2003-03-08 10:40 UTC, Antanas Kompanas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antanas Kompanas 2003-03-08 10:22:30 UTC
passwd fails to change a potentially good password. The output is:
(index fread failed)
Segmentation fault

pam & cracklib are enabled. 

Reproducible: Always
Steps to Reproduce:
1. emerge sync && emerge -u cracklib
2. login and try to change your password

Actual Results:  
(index fread failed)
Segmentation fault

Expected Results:  
The password should have been changed

# emerge info
Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.20 i686 Celeron (Coppermine)
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm arts avi crypt cups encode gif gpm gtk imlib java jpeg kde gnome libg++ libwww mikmod mmx motif mpeg ncurses nls oggvorbis opengl pdflib png qt quicktime sdl spell svga truetype X xml2 xmms xv zlib gdbm berkdb slang readline tcpd pam ssl perl python"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Antanas Kompanas 2003-03-08 10:31:50 UTC
Created attachment 9128 [details, diff]
extra.words file in miscfiles-1.3

Should be applied during ebuild unpack
Comment 2 Antanas Kompanas 2003-03-08 10:32:52 UTC
Created attachment 9129 [details, diff]
extra.words file in miscfiles-1.3

Should be applied during ebuild unpack
Comment 3 Antanas Kompanas 2003-03-08 10:40:24 UTC
Created attachment 9130 [details, diff]
applies miscfiles-1.3.diff patch
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2003-03-09 00:38:30 UTC
thanks, diff applied to 1.3-r1

please test
Comment 5 Antanas Kompanas 2003-03-10 06:19:40 UTC
After some testing, I have found that:
* the patch works, i.e. incorporates extra.words into cracklib dictionary
  and removes cat: no such file message during cracklib build;
* it does not solve the problem with passwd failing.
Additionally:
* passwd fails only if cracklib was built inside of chroot environment
  and only with specific passwords (they are not weird or bad, just
  specific, and I just happened to use them)
* emerge cracklib after restart into the installed system solved the problem

I used Gentoo 1.4_rc2 livecd+grp for pentium3 for installation but not booting form cd. I used existing Slackware system to setup a build environment.

I don't know if the problem comes up when booting from cd, nor if
the problem persists with 1.4_rc3. If I have time, I'll check that.