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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-13-2011, 04:40 PM
|
#1
|
|
Member
Registered: Jul 2011
Location: Milky Way
Distribution: Ubuntu, LFS, Slackware
Posts: 192
Rep:
|
Cannot log in after installing shadow/PAM
Hello, I have problem with the Login, and I figured out it is related to my shadow / PAM config issues. The problem is: I don't know those issues.
Started when I reinstalled the Shadow after I installed Linux-PAM and Cracklib (which wasn't installed before, of course). After that, I restarted my computer and found that I cannot login! The error shows that I enter the wrong password even though I enter the right one. I even tried to change the password (via a chroot from another Linux OS), wrote it down, and still got the same prob!
FYI, I'm not using any X Windows.
Can someone help me? Thanks!
|
|
|
|
08-14-2011, 03:48 AM
|
#2
|
|
Moderator
Registered: May 2001
Posts: 24,970
|
Quote:
Originally Posted by TKH
Started when I reinstalled the Shadow after I installed Linux-PAM and Cracklib (which wasn't installed before, of course).
|
If PAM isn't installed by default then it might require additional configuration before you can use it. Which distribution are you talking about? Did you follow any documentation installing PAM? Re-installing shadow passwords may not or may re-initialize or clear out /etc/shadow. Did you follow any documentation for this too? Did you check /etc/shadow contents? Did you convert /etc/passwd to use shadow passwords?
Quote:
Originally Posted by TKH
I even tried to change the password (via a chroot from another Linux OS),
|
From your other OS you could try changing the entry for root in both /etc/passwd and /etc/shadow and see if that gets you in.
* BTW I changed your thread title to something more clear and this thread will be moved a more appropriate forum RSN as it is not a security but a software issue.
|
|
|
|
08-14-2011, 11:21 AM
|
#3
|
|
Member
Registered: Jul 2011
Location: Milky Way
Distribution: Ubuntu, LFS, Slackware
Posts: 192
Original Poster
Rep:
|
Quote:
Originally Posted by unSpawn
If PAM isn't installed by default then it might require additional configuration before you can use it. Which distribution are you talking about? Did you follow any documentation installing PAM? Re-installing shadow passwords may not or may re-initialize or clear out /etc/shadow. Did you follow any documentation for this too? Did you check /etc/shadow contents? Did you convert /etc/passwd to use shadow passwords?
|
I already set up some stuff on pam.d and login.defs. I do notice when I looked closer, I have a feeling that it might be related to encryption problem because the system seemed to not be able to read the passwd file (I feel so..)
By the way, if you ask me, I'm using Linux From Scratch as my experimental Distro.
Thanks!
|
|
|
|
08-14-2011, 06:51 PM
|
#4
|
|
Moderator
Registered: May 2001
Posts: 24,970
|
Quote:
Originally Posted by TKH
I'm using Linux From Scratch
|
I've moved your thread to the LFS forum.
Quote:
Originally Posted by TKH
I already set up some stuff on pam.d and login.defs. (..) it might be related to encryption problem because the system seemed to not be able to read the passwd file (..)
|
One of the things you'll learn from working with computers (versus humans) is that conditions are binary: a bit is flipped, a value is true, a file exists or not, and not based on "feelings" or "worries". This makes it easier to follow any post-LFS installation steps and test results to see at which point you failed. Best start by retracing your steps. Ten points if you work methodically and keep a log of actions you performed.
|
|
|
1 members found this post helpful.
|
08-15-2011, 01:37 AM
|
#5
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,868
|
Hi TKH,
The first thing that came to mind when reading this thread: Did the login test work when building these packages? (the one mentioned here: Shadow-4.1.4.2 - The Warning box).
If you haven't solved this yet I would suggest reinstalling these three packages in this oredr:
CrackLib-2.8.18
Linux-PAM-1.1.3
Shadow-4.1.4.2
Use a liveCD (or, if present, another distro on that box) and chroot into LFS (using the chroot command mentioned here: LFS 6.63).
Hope this helps.
|
|
|
1 members found this post helpful.
|
08-20-2011, 08:48 AM
|
#6
|
|
Member
Registered: Jul 2011
Location: Milky Way
Distribution: Ubuntu, LFS, Slackware
Posts: 192
Original Poster
Rep:
|
I've install all the packages mentioned in the shadow dependencies. It works fine after. Thanks...
|
|
|
|
08-21-2011, 03:21 AM
|
#7
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,868
|
You're welcome 
|
|
|
1 members found this post helpful.
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:38 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|