LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-23-2020, 10:36 AM   #1
Panther_
LQ Newbie
 
Registered: Jan 2012
Location: Podlasie [Pl]
Distribution: Slackware-current
Posts: 14

Rep: Reputation: Disabled
PAM slackware-current - login problem


Hello,

I'm having trouble logging in to the system (slackware-current). I have updated the system to the current version. After restart I receive a message:

Code:
login incorrect
There are user and root accounts in the system.

My config:
Code:
#/etc/pam.d/login

#%PAM-1.0
auth            required        pam_securetty.so
# To set a limit on failed authentications, the pam_tally2 module
# can be enabled. See pam_tally2(8) for options.
#auth            required        pam_tally2.so deny=4 unlock_time=1200
auth            include         system-auth
auth            include         postlogin
account         required        pam_nologin.so
account         include         system-auth
password        include         system-auth
session         include         system-auth
session         include         postlogin
session         required        pam_loginuid.so
session         optional        pam_ck_connector.so nox11

Any suggestions?
I will add that I have been using slackware since version 8.0. It's been a long time. However, PAM will probably not allow me to continue using it.

Last edited by Panther_; 05-23-2020 at 10:40 AM.
 
Old 05-23-2020, 10:56 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
is this a full installation? have you installed the new packages added to current in the last days?
 
1 members found this post helpful.
Old 05-23-2020, 11:37 AM   #3
Panther_
LQ Newbie
 
Registered: Jan 2012
Location: Podlasie [Pl]
Distribution: Slackware-current
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thank you for your interest,

this is not a full installation. This is an uninterrupted current since 2011. Constantly updated. The computer is for home use.

As suggested in the ChangeLog file, I installed pam, cracklib, and
libpwquality and new shadow.

I have default settings for PAM. Everyone writes that after the update, pam works imperceptibly.
Unfortunately, this is not the case with me.
I tried to replace grooup files by deleting my entries.
I also wanted to add a new user to try to solve the problem. PAM does not allow you to give it a password or permissions.

I do all this on a mounted system.

I don't know where to start?

I do not want to go the road - reinstallation does not work ...
 
Old 05-23-2020, 11:44 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
maybe you are missing some dependencies: I would try with libtirpc and krb5, if you haven't installed them already.

but if you decide to do partial installations you should be able to handle dependencies yourself...

Last edited by ponce; 05-23-2020 at 11:46 AM.
 
3 members found this post helpful.
Old 05-23-2020, 12:23 PM   #5
Panther_
LQ Newbie
 
Registered: Jan 2012
Location: Podlasie [Pl]
Distribution: Slackware-current
Posts: 14

Original Poster
Rep: Reputation: Disabled
You know, my system is a bit of a minimalist version.
I did not have these packages installed. I was probably looking through ChangeLog carelessly ...

You are great man! Thank you very much for your time and problem solution :-)
It was nice to read the message:

Code:
Welcome to Linux 5.4.41 i686 (tty1)

login: 
Password:
Last failed login: Sat May 23 18:40:03 CEST 2020 on tty6
There were 39 failed login attempts since the last successful login.
Last login: Wed May 20 12:06:53 on /dev/tty1
 
Old 05-24-2020, 06:49 AM   #6
dalacor
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 170

Rep: Reputation: Disabled
Have you found using a minimal install of Slackware easy to maintain in terms of upgrades. I tried to setup a minimal Slack install this weekend and a: ran into the same problem you ran into - I was missing the libtirpc package and b: I discovered that even though my original install worked fine, I had to install new packages (pam, cracklib and
libpwquality) in order to login after upgrading existing Slackware packages.

But reading your post, I see that you have been running a minimal Slackware Current since 2011. I just wondered if you find regularly find issues with updating Slackware over the years where you have to install new packages using slackpkg install-new or you have to add missing existing packages such as libtirpc to get a Slackware upgrade to work when you reboot after running slackpkg upgrade-all
 
Old 05-24-2020, 03:24 PM   #7
Panther_
LQ Newbie
 
Registered: Jan 2012
Location: Podlasie [Pl]
Distribution: Slackware-current
Posts: 14

Original Poster
Rep: Reputation: Disabled
There are no major problems updating slackware. Regardless of whether you have the full version or a combination of selected packages.

I made the first installation of slackware from a cd attached to a Linux magazine. The process of installing and configuring the system was well described there. They have already installed the system for the first time without selected groups of packages. And that's how I stayed.

With the development of distribution, some packages are riddled, others are added to the system, others change names and contents. The changes are described in the ChangeLog.txt and CHANGES_AND_HINTS.TXT files. After freezing current in a stable version, the update is additionally described in UPGRADE.TXT

I don't use slackpkg. Maybe for the first time I will use the new system installation, and then manually remove the unnecessary packages ...
Unfortunately, I have to add new packages manually ...

My way to update:
- rsync to current (this is for updating current to my disk).
- find and upgradepkg to upgrade
 
Old 05-24-2020, 08:03 PM   #8
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
easier way: slackpkg install-new
 
1 members found this post helpful.
Old 05-25-2020, 04:10 AM   #9
dalacor
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 170

Rep: Reputation: Disabled
I would highly recommend using slackpkg to update slackware and kernels. Far easier.

Thank you for your feedback. I will see how my minimal install fares. I guess I just chose a bad time trying this out as it co-incided with the arrival of PAM.
 
Old 05-25-2020, 07:43 AM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by dalacor View Post
I would highly recommend using slackpkg to update slackware and kernels. Far easier.
I would highly recommend not to use slackpkg to upgrade your kernels, unless you have a very simple setup (using the huge kernel, no initrd, no LUKS/LVM/RAID)...

I have the kernel-modules and kernel-generic blacklisted and manually 'installpkg' a new kernel alongside my running kernel. Then I create a new initrd to accompany the new kernel and its modules. Then I update (e)lilo and make sure that I can always boot the latest (new) kernel and the previous kernel. That way, I am sure that there will always be a kernel in the boot menu that I know is working.
Finally I removepkg the oldest kernel (keeping two), its modules and its initrd.
 
2 members found this post helpful.
Old 05-25-2020, 10:31 AM   #11
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by Alien Bob View Post
Finally I removepkg the oldest kernel (keeping two), its modules and its initrd.
I even often keep three, which are labelled vmlinux-bak (the sure to be working backup kernel), vmlinux (the normal running one) and vmlinux-new (the newest, not really completely trusted yet).
They are in the lilo config under those names, but are sym-links to the actual (versioned) kernel files. Note that "vmlinux" is custum-built, so doesn't need an initrd
 
Old 05-25-2020, 10:58 AM   #12
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,097

Rep: Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276
Quote:
Originally Posted by Alien Bob View Post
I would highly recommend not to use slackpkg to upgrade your kernels, unless you have a very simple setup (using the huge kernel, no initrd, no LUKS/LVM/RAID)...

I have the kernel-modules and kernel-generic blacklisted and manually 'installpkg' a new kernel alongside my running kernel. Then I create a new initrd to accompany the new kernel and its modules. Then I update (e)lilo and make sure that I can always boot the latest (new) kernel and the previous kernel. That way, I am sure that there will always be a kernel in the boot menu that I know is working.
Finally I removepkg the oldest kernel (keeping two), its modules and its initrd.
What he said!
 
Old 05-25-2020, 11:14 AM   #13
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,971

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
Quote:
Originally Posted by Alien Bob View Post
I would highly recommend not to use slackpkg to upgrade your kernels, unless you have a very simple setup (using the huge kernel, no initrd, no LUKS/LVM/RAID)...

I have the kernel-modules and kernel-generic blacklisted and manually 'installpkg' a new kernel alongside my running kernel. Then I create a new initrd to accompany the new kernel and its modules. Then I update (e)lilo and make sure that I can always boot the latest (new) kernel and the previous kernel. That way, I am sure that there will always be a kernel in the boot menu that I know is working.
Finally I removepkg the oldest kernel (keeping two), its modules and its initrd.
Agree with Alien Bob. I have four installations; one desktop, two laptops and a VirtualBox vm, all Slackware64-current. I also run with two kernels on each with the exception of the virtual machine. This is my clean install box and uses the huge kernel. In this case I do let slackpkg handle the upgrading to the kernel modules.

I do it a bit differently. I don't change my lilo.conf, my changes are done with the symlinks. Each computer has its own specific /etc/mkinitrd.conf file. The default boot is the running kernel, the other boot option is the last working kernel; named "Slackware64" and "LastWorking". In /boot/ I have the standard links for the kernel (System.map, config, vmlinuz) and another set of links to the LastWorking kernel (System.map-working, config-working, vmlinux-working). I occasionally run with a third kernel for "Testing". When I upgrade the kernel, I remove the Lastworking kernel, the currently running kernel is symlinked to the LastWorking kernel. The new kernel (kernel-generic, kernel-headers, kernel-modules, kernel-source) is manually installed and by default takes the default links formerly used by the running kernel. I do not install the huge kernel.

I then run 'mkinitrd -F -k 5.4.42' for the new kernel; then
'mkinitrd -F -k 5.4.41 -s initrd-working-tree -o initrd-working.gz'; then
lilo

The "-F" tells mkinitrd to use /etc/mkinitrd.conf

Last edited by chrisretusn; 05-25-2020 at 11:17 AM.
 
Old 05-25-2020, 07:19 PM   #14
dalacor
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 170

Rep: Reputation: Disabled
I stand corrected. I currently update Slackware in a two stage process. I do slackware install-new and slackware upgrade-all, reboot the system and then upgrade just the kernel using slackware upgrade-all by removing kernels from blacklist. However, I am aware that this is not recommended procedure. Having said that, as I am planning to move all my Slack boxes to virtual machines I don't really see this as a problem for me as I can create a hypver-v checkpoint then do my upgrades and if something goes wrong I can revert to that snapshot.

I was focusing more on the point where Panther is using rsync to connect to current, then find and installpkg. It would be so much easier to use slackpkg to upgrade existing packages and install new packages. Using rsync and install seems a very time consuming way to do it.
 
Old 06-19-2020, 08:45 AM   #15
zdolar
Member
 
Registered: Jul 2009
Location: Slovenija
Distribution: Slackware
Posts: 177

Rep: Reputation: 38
Hi!

Have the same issue (login incorrect) on my VirtualBox slackware64-current slackpkg install-new and upgrade-all on 27.5.2020 (last package udated zstd-1.4.5)
Have RO access to files on that image. So I can debug PAM and other config files, see logs, etc.
How to solve this, as I can probably boot to single user mode with:
boot: linux init=/bin/sh
/sbin/mount /dev/sdxy / -o remount,rw

But network will not work.

Is it possible to solve that?
 
  


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
Help with PAM and PAM modules bourne Linux - Security 6 11-02-2008 11:48 PM
PAM module:passwd:- how many character validate by pam library amit_pansuria Linux - General 3 10-21-2008 01:19 AM
vsftpd + pam + virtual users - Pam cannot load database file. mdkelly069 Linux - Networking 3 09-22-2004 11:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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