SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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 ...
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
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
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
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.
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.
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
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,097
Rep:
Quote:
Originally Posted by Alien Bob
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.