LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-14-2018, 08:59 AM   #1
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,BLFS,Opensuse
Posts: 70

Rep: Reputation: Disabled
Linux-Pam troubles on 8.2 systemd


Hi All,
I got Xorg and xfce4 done. Problem is I can only startx to xfce4 desktop in root only.
"System is booting up. See pam_nologin (8). When I try "user" I get
Login incorrect. I'm little confused with the pam configuration I guess
Thanks for any help . System built with lfs 8.1 systemd
 
Old 04-14-2018, 09:52 AM   #2
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX, NuTyX
Posts: 1,861
Blog Entries: 4

Rep: Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815
So did you look at the pam_nologin man page as suggested, before posting? It would have told you that pam_nologin is a pam module which can be used to prevent users other than root from logging in, for example during system maintenance. However it depends on the presence of a marker file, usually /etc/nologin. Since you have root access, you can track down this file and delete it.
 
Old 04-14-2018, 01:05 PM   #3
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,BLFS,Opensuse
Posts: 70

Original Poster
Rep: Reputation: Disabled
Thanks Hazel for your reply.
Truthfully I don't know how to correct it. I can't find the module and remove it. Been fooling with this for the past three days.
At least I still have 8.1 to play with.
Regards,
 
Old 04-15-2018, 09:46 AM   #4
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX, NuTyX
Posts: 1,861
Blog Entries: 4

Rep: Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815
Quote:
Originally Posted by rabidlinux View Post
Thanks Hazel for your reply.
Truthfully I don't know how to correct it. I can't find the module and remove it.
You don't want to remove the module. You want to remove the nologin file that signals the module to behave in this way. By default it should be in the /etc directory, so look there first. If it isn't there, search for it using the locate command.
 
Old 04-15-2018, 12:19 PM   #5
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,BLFS,Opensuse
Posts: 70

Original Poster
Rep: Reputation: Disabled
Hi Hazel,
I will take a look at that. Question for you. Is Pam necessary at all?
Regards

P.S Ordered The Charm
 
Old 04-15-2018, 01:13 PM   #6
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX, NuTyX
Posts: 1,861
Blog Entries: 4

Rep: Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815
Quote:
Originally Posted by rabidlinux View Post
Question for you. Is Pam necessary at all?
I don't put it on my lfs systems. So I suppose strictly it's not necessary on a personal desktop/laptop. It is necessary on an office server if you want to use ldap (a centralised database for logins, which you need for "hot-desking").

Philosophically though, pam represents an important idea in Linux, namely that system administrators rather than programmers should make the decisions about the security of their own systems. The sysadmin knows where stricter authentication rules are required (for example to get permission to edit a critical database) and can write those rules into a program's pam configuration file. And if there is no suitable combination of existing pam modules, it's fairly easy to write new ones. You just need a bit of C code to check some relevant thing and return true or false. That's probably why practically all distros include it.
 
Old 04-15-2018, 05:18 PM   #7
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,BLFS,Opensuse
Posts: 70

Original Poster
Rep: Reputation: Disabled
Thanks for that information Hazel. I didn't use it when I did 8.1 and have had no problems. Don't know why I having such a hard time with 8.2
 
Old 04-16-2018, 10:19 AM   #8
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,BLFS,Opensuse
Posts: 70

Original Poster
Rep: Reputation: Disabled
Not solved. will probably re-install X and see that works.
 
Old 04-19-2018, 03:31 PM   #9
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,BLFS,Opensuse
Posts: 70

Original Poster
Rep: Reputation: Disabled
Hi All,
Figured it out. I did have to install cracklib after all then pam,shadow and systemd.
Hope this helps some of you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
gnome3 + pam + systemd on top of Slackware bartgymnast Slackware 34 02-29-2016 02:09 AM
Closest thing to Slackware but with PAM and systemd deadbeat Linux - Distributions 7 02-22-2015 11:47 PM
PAM troubles! abdoullah Linux - Security 1 12-16-2009 01:07 PM
PAM troubles goestin Linux - Server 1 05-21-2007 09:36 AM

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

All times are GMT -5. The time now is 08:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration