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 > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 02-09-2022, 08:24 AM   #1
Tiziano
LQ Newbie
 
Registered: Feb 2022
Location: Italy, Bologna
Posts: 3

Rep: Reputation: 1
Slackware 15 installation unusable


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
 
Old 02-09-2022, 11:48 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,597
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
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.
 
Old 02-09-2022, 03:35 PM   #3
Tiziano
LQ Newbie
 
Registered: Feb 2022
Location: Italy, Bologna
Posts: 3

Original Poster
Rep: Reputation: 1
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?
 
Old 02-10-2022, 05:38 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,597
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
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.
 
2 members found this post helpful.
Old 02-10-2022, 09:17 AM   #5
Tiziano
LQ Newbie
 
Registered: Feb 2022
Location: Italy, Bologna
Posts: 3

Original Poster
Rep: Reputation: 1
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.
 
1 members found this post helpful.
Old 02-10-2022, 09:32 AM   #6
JayByrd
Member
 
Registered: Aug 2021
Location: Seattle, WA
Distribution: Slackware
Posts: 300

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
Quote:
Originally Posted by Tiziano View Post
... 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.

Last edited by JayByrd; 02-10-2022 at 10:31 AM.
 
1 members found this post helpful.
  


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
[SOLVED] Slackware 13.37 - cfdisk renders my partitions unusable after I delete them. Aquarius_Girl Slackware - Installation 4 05-04-2012 11:39 AM
"Unusable Space" during installation even though I don't have 4 primary partitions? dr_basketball93 Linux - Newbie 16 02-04-2012 08:24 AM
Unusable TTF rendering on integrated Intel 852/855, in Slackware 13.0 Yury_T Slackware 18 10-13-2009 03:01 PM
Ez-9010 (O) keyboard unusable for LiveCDs and Slackware 10.0 after 2.6.8.1 ker inst.. spurs-rule Linux - Hardware 0 10-26-2004 06:07 PM
Unusable Depth Problem in Install. of Mandrake 7.2 Jonathan8765432 Linux - Software 1 11-19-2001 08:55 AM

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

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