Re: Passwd problem

Bernhard Rosenkraenzer <bero-7/IPog0mCCsmlAP/[email protected]> Mon, 3 Jan 2005 00:52:10 +0100
Newsgroups gmane.linux.arklinux.devel
Organization LINUX4MEDIA GmbH
Message-ID <[email protected]>
On Sunday 02 January 2005 23:00, Zackary D. Deems wrote:
> Install cracklib-dicts .. that will fix passwd.  Some time ago
> pam_cracklib was moved OUT of the main pam package, and cracklib-dicts
> was not added as a requirement for pam-extra.
>
> pam_cracklib is required in order for passwd to function.  This should
> be fixed within the next few days.

Right cause, wrong fix.
The recent pam update broke the default system-auth file, I'm currently fixing 
it right.

[root@localhost i586]# rpm -q cracklib cracklib-dicts pam-extra
package cracklib is not installed
package cracklib-dicts is not installed
package pam-extra is not installed
[root@localhost i586]# passwd
Changing password for user root.
Enter new UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@localhost i586]# cat /etc/pam.d/system-auth
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth        required      pam_env.so
auth        sufficient    pam_unix.so likeauth nullok
auth        required      pam_deny.so

account     required      pam_unix.so

# password    required      pam_cracklib.so retry=3
password    required      pam_unix.so nullok md5 shadow
password    sufficient    pam_unix.so nullok use_authtok md5 shadow
password    required      pam_deny.so

session     required      pam_limits.so
session     required      pam_unix.so
[root@localhost i586]#

LLaP
bero