Linux From ScratchThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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 05:56 AM.
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.
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!
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.