LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-03-2009, 06:10 PM   #1
Johnomal
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Rep: Reputation: 0
Authentication failure after change to cracklib


Hi,

I was messing around with changing the dictionary for our PAM cracklib module and seemed to have stuffed something up.

When I attempt to log in through a telnet session with any user that has a password I get

Authentication Failure

This session is no longer connected

I am still able to log in via the Web admin using the root user/password.

I can also log in from a telnet session if the user has no password.

Any suggestions on how to fix this would be greatly appreciated.


John
 
Old 09-03-2009, 07:30 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hi johnomal,

Not sure what platform you're running on but if its rpm based you could try:

Code:
rpm -Vv cracklib
rpm -Vv cracklib-dicts
Example output:
Code:
[root@xxxxx ~]# rpm -Vv cracklib-dicts
.........    /usr/lib/cracklib_dict.hwm
.........    /usr/lib/cracklib_dict.pwd
.........    /usr/lib/cracklib_dict.pwi
.........    /usr/sbin/mkdict
.........    /usr/sbin/packer
.........    /usr/share/cracklib
.........    /usr/share/cracklib/cracklib-small.hwm
.........    /usr/share/cracklib/cracklib-small.pwd
.........    /usr/share/cracklib/cracklib-small.pwi
.........    /usr/share/cracklib/pw_dict.hwm
.........    /usr/share/cracklib/pw_dict.pwd
.........    /usr/share/cracklib/pw_dict.pwi
If there is anything other than dots then you'll need to fix that particular file

You could also force reinstallation if any files are deleted

cheers,

kbp

Last edited by kbp; 09-03-2009 at 07:32 PM.
 
Old 09-03-2009, 08:00 PM   #3
Johnomal
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for that info.

Here is the output of

rmp -Vv cracklib-dicts

..5....T /usr/lib/cracklib_dict.hwm
S.5....T /usr/lib/cracklib_dict.pwd
S.5....T /usr/lib/cracklib_dict.pwi
........ /usr/sbin/mkdict
........ /usr/sbin/packer

I guess that means I will have to fix some files.

My system is Redhat Enterprise release 4.

Can you tell me what steps I need to take to repair those files?

Thanks,
John

Quote:
Originally Posted by kbp View Post
Hi johnomal,

Not sure what platform you're running on but if its rpm based you could try:

Code:
rpm -Vv cracklib
rpm -Vv cracklib-dicts
Example output:
Code:
[root@xxxxx ~]# rpm -Vv cracklib-dicts
.........    /usr/lib/cracklib_dict.hwm
.........    /usr/lib/cracklib_dict.pwd
.........    /usr/lib/cracklib_dict.pwi
.........    /usr/sbin/mkdict
.........    /usr/sbin/packer
.........    /usr/share/cracklib
.........    /usr/share/cracklib/cracklib-small.hwm
.........    /usr/share/cracklib/cracklib-small.pwd
.........    /usr/share/cracklib/cracklib-small.pwi
.........    /usr/share/cracklib/pw_dict.hwm
.........    /usr/share/cracklib/pw_dict.pwd
.........    /usr/share/cracklib/pw_dict.pwi
If there is anything other than dots then you'll need to fix that particular file

You could also force reinstallation if any files are deleted

cheers,

kbp
 
Old 09-03-2009, 10:46 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hey John,

You can obtain the rpm from rhel4 media or channels and just reinstall it:

Code:
rpm -ivh --force cracklib-dicts-x.x.x.arch.rpm
cheers

kbp
 
Old 09-06-2009, 11:01 PM   #5
Johnomal
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks again,

I reinstalled the cracklib and cracklib-dicts packages, it fixed up the entries in that file.

But I still have the original problem. Any user that requires a password to log in gets 'Authentication failure'.

My production box is still working fine.

Is there anything I can compare between the 2 boxes to work out what is different?

Is there anything else I can do to resolve the problem?

John
 
Old 09-06-2009, 11:49 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Did you modify /etc/pam.d/system-auth ? ... try comparing the contents of /etc/pam.d

cheers
 
Old 09-07-2009, 12:11 AM   #7
Johnomal
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Yep, tried that.

Copied the file over from the production box and still the same result.
 
  


Reply



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
PAM authentication failure capibolso Linux - Newbie 1 05-01-2013 03:24 AM
at: Authentication Failure rl92694 Linux - General 4 10-22-2012 09:33 PM
$su, Authentication Failure Eilya Ubuntu 9 10-14-2008 05:41 AM
cant install cracklib on suse MagusYilie Linux - Software 0 05-06-2006 11:10 PM
authentication failure mendiratta Linux - Security 1 07-03-2004 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:30 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