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 - 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


Reply
  Search this Thread
Old 08-29-2019, 02:13 PM   #1
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 302

Rep: Reputation: 89
BLFS PAM + Shadow not working


I'm working on some additions to an existing BLFS 8.2 system which should be using Linux-PAM-1.3.0 and Shadow-4.5. After installing these, I am unable to log in.

I have heeded the warning on the Shadow page to the letter, double-checking all of the configuration files from these two packages, and even recompiling both. I do notice, though, that the files in /etc/pam.d are all exactly one byte larger than the corresponding files in one of my other working systems.

Is there anything else I can check here before giving up and recompiling shadow without LibPAM?
 
Old 08-29-2019, 04:50 PM   #2
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,Tumbleweed,BLFS 9.0
Posts: 227

Rep: Reputation: Disabled
If you built with systemd it has to be rebuilt after shadow.
 
Old 08-29-2019, 05:49 PM   #3
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 302

Original Poster
Rep: Reputation: 89
No systemd here, just the regular book.
 
Old 08-30-2019, 02:35 PM   #4
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 302

Original Poster
Rep: Reputation: 89
Turns out this was due to the way I was testing it. This is for a headless setup and I was still chrooted. I had to wait until I got openssh / iptables going, boot up natively, and then ssh in as a regular user.

Indeed PAM locks you out if you chroot in as an ordinary user (chroot --userspec ...) and then try to get root. I'm not sure this is a bug or by design, but in any case I jumped the gun and tried to test it out too soon.
 
  


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
/etc/pam.d/system-auth-ac vs. /etc/pam.d/password-auth-ac vs. /etc/pam.d/sshd christr Red Hat 2 08-01-2014 07:08 PM
[SOLVED] BLFS - Linux-PAM Docs Luridis Linux From Scratch 1 03-27-2014 08:23 PM
ubuntu karmic nis client 'ypcat shadow.byname' works, but 'getent shadow' fails casterln Linux - Networking 1 03-06-2010 01:47 AM
Ubuntu 8.04 / LDAP / NSS / PAM - not sharing shadow password hence not authenticating fuzzyworm Linux - Server 5 01-01-2009 03:29 PM
/etc/shadow- (notice the dash after the word shadow) shellcode Linux - Security 1 09-03-2004 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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