LinuxQuestions.org
Social Bookmarking all things Linux and Open Source
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 10-04-2009, 06:35 AM   #1
lloydsmart
LQ Newbie
 
Registered: Dec 2005
Location: Lewes, UK
Distribution: CLFS x86_64 Pure64
Posts: 29
Thanked: 0
Exclamation Problems with Linux-PAM - can't log in!


[Log in to get rid of this advertisement]
Hi.

As the title suggests, I've just installed Linux-PAM as per the CBLFS instructions, on an x86_64 pure64 build, and recompiled and reinstalled shadow. Now I can't log in to my system at all. Help!

The system boots just fine, then it gets to the login prompt, and no matter what I type, it always says "login incorrect" without even prompting for a password, then every 3 seconds or so it will repeat the "login incorrect message", until it has done so 5 times. Then it quickly flashes up something like "exceeded maximum login attempts" (I can't read it properly because it clears the screen really quickly after that appears), and it returns me to the login prompt!

I have only one normal user account set up at the moment, plus root.

Can anyone help? I don't know what to do! Is it something to do with a PAM configuration file somewhere? Which one?

Thanks in advance!

EDIT: I deleted the whole pam.d directory and just went with a very simple /etc/pam.conf to see where that would get me, and now my previous problem gas gone but a new one has appeared instead. When I log in now it does ask me for a password, but when I give it I just get "Module is unknown", then I'm returned to the login prompt.

Incidentally, if I give wrong login details, it says "Login incorrect, as you'd expect.

Last edited by lloydsmart; 10-04-2009 at 06:56 AM..
windows_98_nt_2000 lloydsmart is offline  
Tag This Post , ,
Reply With Quote
Old 10-04-2009, 02:11 PM   #2
weibullguy
PackManUtil Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Cross Linux from Scratch, Gentoo
Posts: 2,343
Blog Entries: 1
Thanked: 60
Your original problem was caused by an error in /etc/pam.d/system-auth. Most likely you used the one for systems with cracklib. Recreate the PAM configuration files as described in CBLFS, but use the correct system-auth. Either that or get rid of PAM support.
linux weibullguy is offline     Reply With Quote
Old 10-04-2009, 02:16 PM   #3
lloydsmart
LQ Newbie
 
Registered: Dec 2005
Location: Lewes, UK
Distribution: CLFS x86_64 Pure64
Posts: 29
Thanked: 0

Original Poster
I did the one for systems with cracklib because I installed cracklib. Perhaps I should have made that clear. Ideally, all I really need is plain old shadow with cracklib, and to forget about PAM altogether, but how do I remove PAM?

On the other hand, how difficult would it be to get PAM working from my current situation? I can mount the ext2 partition in Windows to modify any config files necessary, and I wouldn't mind having PAM support at all, it's just not really a necessity.

What would you recommend I do? Try to remove PAM or try to get it working? Either way I do want to use cracklib. Thanks!
windows_98_nt_2000 lloydsmart is offline     Reply With Quote
Old 10-05-2009, 08:20 AM   #4
lloydsmart
LQ Newbie
 
Registered: Dec 2005
Location: Lewes, UK
Distribution: CLFS x86_64 Pure64
Posts: 29
Thanked: 0

Original Poster
Ok, I've re-done all the PAM config files as per the CBLFS website, as weibullguy suggested. Now I'm back to the original error of "Incorrect Login" repeating itself several times.

I've decided I really don't need PAM support, at least for the time being, and I'd like to remove it. Can anyone give me a list of files I need to delete, or is it more complicated than that?

Thanks.
windows_98_nt_2000 lloydsmart is offline     Reply With Quote
Old 10-05-2009, 09:29 AM   #5
weibullguy
PackManUtil Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Cross Linux from Scratch, Gentoo
Posts: 2,343
Blog Entries: 1
Thanked: 60
You should be able to rebuild shadow without PAM support to get your login ability back. Unless you build an application to be PAM-aware, it won't be. But, some apps' configure script may pick up PAM by default.

To completely remove PAM, start with the list of files and directories at the bottom of the wiki page. I don't know how complete the list is. There may be some documentation files left.
linuxfedora weibullguy is offline     Reply With Quote
Thanked by:
Old 10-06-2009, 01:54 AM   #6
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS 6.4, Slackware 10.1
Posts: 277
Thanked: 1
This is not really solved is it? I mean if you were to reinstall PAM you are still unable to login right?
linux ProtoformX is offline     Reply With Quote
Old 10-06-2009, 08:23 AM   #7
lloydsmart
LQ Newbie
 
Registered: Dec 2005
Location: Lewes, UK
Distribution: CLFS x86_64 Pure64
Posts: 29
Thanked: 0

Original Poster
Probably, I haven't tried it. I can now log in, though, so my problem is solved, in the sense that the problem was not being able to log in, and now I can.
windows_98_nt_2000 lloydsmart is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 - only allow domain group members to log on via ssh? humbletech99 Linux - Networking 3 01-24-2006 12:53 PM
pam problems bsudbury Linux - Security 0 05-15-2005 10:20 PM
Failing to log into ssh via ldap auth. Pam Problem? cehlers Linux - Security 1 10-10-2004 08:55 AM
cannot log in...pam error Axion Linux - Distributions 2 08-23-2004 10:51 AM


All times are GMT -5. The time now is 03:59 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration