Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
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've successfully installed the 15.0 distribution, but, ad the end, I got a unusable system.
Afer reboot, the system shows a Login prompt for which root - with whichever password - is wrong.
I've already repeated the installation 3 time (formatting the root partition every time):
- first time with a commonly used (in my company) password 7 chars long (because is "commonly used", I'm quite sure that I do not make mistakes);
- second time I choose the option to not set the root password: same result;
- third time I choose a longer and complex password (using cut and paste to avoid mistakes) but nothing changed.
Did someone put me in the right direction to solve this? Otherways, this - long awaited - new distribution results unusable
UPDATE
I've booted again from ISO image, mounted the installed Slackaware, created another user (unprivileged) and, with that user, I could log in. And, once logged in, I could su root (both with and without password). I can also change root password and everything works, then only "strange" thing remains the impossibility to log in as root from both the console and via ssh (and, I'm not sure that everyone is able to do the workaround just exposed)
Last edited by Tiziano; 02-09-2022 at 09:54 AM.
Reason: New information available
I suspect PAM on this one. There are different PAM requirements for login and su, with the login ones being stricter, and you may have fallen foul of them.
I agree with you Hazel. but don't you think this is a serious bug for this new distribution?
I do not have a physical machine to test the installation, but I suspect that root login after installation is limited to physical console. All the installations of Slackware 15 I've tried today have been done as a VM (under another Linux with KVM, text only mode) and the console is ther serial one (in other words, there is no physical console or equivalent). If my hypothesis is right, at minimun the installation instruction of Slackware 15 needs to be amended to say something like:
"If the installation is done without physical console, at the end of installation, before rebooting installed system, choose 'shell' and create a non priviled user with useradd to be able to login after reboot"
Don't you agree?
Couldn't tell you! I never use virtual machines and know very little about them. But I've just looked up the PAM files in /etc/pam.d and the one for login specifies pam_securetty as "required". That requires a local login by default. The consoles that count as secure are listed in /etc/securetty and the serial ones are all commented out.
Try uncommenting the one you use and perhaps then you can log in as root.
You're right Hazel, I should have thought about it by myself.
Anyway, now it works and I recommend to put a note in Slackware 15 installation documentation:
"If you install without a physical console, enable the console from which you'll do first login in /etc/securetty before rebooting (for example, for serial console, delete '#' from ttyS0 line in /etc/securetty)"
Great work! Thank you.
... then only "strange" thing remains the impossibility to log in as root from both the console and via ssh (and, I'm not sure that everyone is able to do the workaround just exposed)
Direct root login via ssh is disabled by default.
To enable it, you need to edit /etc/sshd/sshd_confing by changing the setting "PermitRootLogin" to "yes".
As to your original post, I don't see why you were unable to login as root at the console. Counting both hardware and VMs, I must have completed about 20 full installations of Slackware, and have never not been able to log in as root at the console...
EDIT: just realized that you & hazel figured it out.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.