Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 72871

Summary: shadow needs change in /etc/login.defs for passwd to work even with -pam in USE
Product: Gentoo Linux Reporter: Sebastian <sebastian_ml>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sebastian 2004-11-29 16:56:30 UTC
Hello!

I emerge shadow today with 
sys-apps/shadow-4.0.5-r2  -debug +nls -pam (-selinux) -skey

This is the first time I have a PAM-free Gentoo box. pam and pam-login are removed from the system.

I played around with user accounts and tried to give them passwords. This is what happened:

blood root # passwd sk
Comment 1 Sebastian 2004-11-29 16:56:30 UTC
Hello!

I emerge shadow today with 
sys-apps/shadow-4.0.5-r2  -debug +nls -pam (-selinux) -skey

This is the first time I have a PAM-free Gentoo box. pam and pam-login are removed from the system.

I played around with user accounts and tried to give them passwords. This is what happened:

blood root # passwd sk
Ändere Kennwort für sk
Geben Sie das neue Kennwort ein (mindestens 5, höchstens 127 Zeichen)
Bitte benutzen Sie eine Kombination von Groß-/Kleinbuchstaben und
Ziffern.
Neues Kennwort:
/usr/lib.pwd: Datei oder Verzeichnis nicht gefunden
PWOpen: Nicht erlaubter Seek
blood root #

I google a bit and found out that I needed to change the following in /etc/login.defs in order to get passwd to work again:

CRACKLIB_DICTPATH /usr/lib

to

CRACKLIB_DICTPATH /usr/lib/cracklib_dict

Now passwd works again (without PAM).

Maybe you guys can just change patch that changes CRACKLIB_DICTPATH. I'll attach a patch.

Thanks all!

Sebastian

Reproducible: Always
Steps to Reproduce:
1. unmerge pam and pam-login
2. set -pam in make.conf
3. emerge shadow
4. start passwd and give a long password with different characters
Actual Results:  
passwd can't find the cracklib dictionary

Expected Results:  
Well :) passwd works

Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.9 i686)
=================================================================
System uname: 2.6.9 i686 Intel(R) Pentium(R) M processor 1400MHz
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -msse2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf
/etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -msse2 -fomit-frame-pointer -pipe"
DISTDIR="/mnt/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="X alsa bitmap-fonts crypt cups dvd foomaticdb gnome gtk gtk2 hal ithreads
jpeg mad mmx moznocompose moznoirc ncurses nls oggvorbis png ppds readline rtc
spell sse sse2 ssl tetex truetype x86 xprint xv zlib"

Failed to write to mtimedb: [Errno 13] Permission denied: '/var/cache/edb/mtimedb'
Comment 2 Sebastian 2004-11-29 17:01:22 UTC
Ho again!

Sorry, can't attach a patch. I refuse to patch a patch :) You'll find the file at /usr/portage/sys-apps/shadow/files/shadow-4.0.5-login.defs.patch.

S.
Comment 3 SpanKY gentoo-dev 2004-12-01 05:47:00 UTC
thanks, fixed in cvs