LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-08-2019, 05:33 PM   #1
pettijohne
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware 14.1, LinuxMint 16
Posts: 16

Rep: Reputation: Disabled
Can't login after fresh install


I successfully installed 14.2 on an apu2. It boots and brings me to the login screen. However, it won't let me login. I tried adding the -a root switch to the agetty line in inittab without luck. I guess I'm going to try adding the -n switch instead. This doesn't seem like a good long term plan security wise. Feels like I'm hitting a /bin/login bug or a /sbin/agetty bug. Any suggestions welcome.
 
Old 03-08-2019, 05:53 PM   #2
pettijohne
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware 14.1, LinuxMint 16
Posts: 16

Original Poster
Rep: Reputation: Disabled
sorta solved

I created the following:

/bin/nlogin
#!/bin/bash
exec /bin/bash -l

Then added the following to the agetty line in /etc/inittab
-l /bin/nlogin -n

Still would prefer to actually supply a password to login.
 
Old 03-09-2019, 04:14 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,439

Rep: Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692
You think this is a bug in login or agetty? Why do you think that? Countless others installed Slackware before you and did not have this issue. To me the most probably cause seems to be the way you installed and some action you did (or forgot) there.
Can you tell more about how you installed, and as what user you are trying to login?
 
Old 03-09-2019, 06:55 AM   #4
pettijohne
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware 14.1, LinuxMint 16
Posts: 16

Original Poster
Rep: Reputation: Disabled
steps taken

1. rsync "source" using examples from `mirroring guidelines`
2. edit isolinux/isolinux.cfg
Adding `serial 0 115200` as the first line. Then adding `console=ttyS0,115200` to the append line
3. Made the iso following instructions from isolinux/README.TXT
4. Boot the apu2 https://pcengines.ch/apu2d2.htm
5. Partition the disk and install
Since the harddrive is only ~30g I only installed a/ ap/ d/ l/ n/ sets
6. chroot /mnt /bin/bash
7. make an initrd in the typical slackware fashion
8. edit lilo.conf
9. install lilo
10. Edit the new inittab by uncommenting the serial line
11. exit from chroot && Boot the fresh install
12. lots of output till the login prompt pops up.
13. Login: root
Password: thepassword

Login failed. (or something similar)

Login:

This continues till I pull the plug.
 
Old 03-09-2019, 07:04 AM   #5
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 2,733
Blog Entries: 6

Rep: Reputation: 1399Reputation: 1399Reputation: 1399Reputation: 1399Reputation: 1399Reputation: 1399Reputation: 1399Reputation: 1399Reputation: 1399Reputation: 1399
I can't see any reference in your very detailed account of the install to your having set a root password. Did you do that? If not, you need to chroot back into the system and do it now.
 
Old 03-09-2019, 07:13 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,439

Rep: Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692
OK, thanks for providing this feedback. Without input, no output :-)

I assume then that you did not create a 'regular' user and are trying to login as root.
Slackware's shadow authentication reads /etc/login.defs for configuration. In there you will find this text:

Code:
#
# If defined, either full pathname of a file containing device names or
# a ":" delimited list of device names.  Root logins will be allowed only
# upon these devices.
#
CONSOLE         /etc/securetty
#CONSOLE        console:tty01:tty02:tty03:tty04
Now, looking at /etc/securetty:
Code:
# This file defines which devices root can log in on.

# These are the ttys on the physical console:
console
tty1
tty2
tty3
tty4
tty5
tty6

# These are some remote ttys, and uncommenting them might be less than fully secure:
#ttyS0
#ttyS1
#ttyS2
... and it goes on like this...
Which shows that the serial consoles are not accepting root login by default, unless you edit /etc/securetty and uncomment the line for your serial console.

Does this solve your login issue?
 
1 members found this post helpful.
Old 03-09-2019, 07:58 AM   #7
pettijohne
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware 14.1, LinuxMint 16
Posts: 16

Original Poster
Rep: Reputation: Disabled
[SOLVED]

That did the trick.
 
Old 03-09-2019, 08:05 AM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,439

Rep: Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692Reputation: 5692
Good! Now can you please also mark this thread as [SOLVED] using the thread tools? That will inform other readers of this forum.
 
  


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
Debian 9 XFCE fresh install, nothing but wallpaper after login lyndhurst Linux - Laptop and Netbook 8 09-20-2017 05:37 AM
[SOLVED] Can login after fresh install but got only mouse and desktop wallpaper (no icon, no rightclick) Nexius74 Linux Deepin 3 06-26-2017 10:59 AM
USB keyboard not recognised at login after fresh 14.2 install esme_squalor Slackware - Installation 6 01-02-2017 06:34 PM
Fresh Install of FC6: Can't login! Anthony903 Fedora 9 01-28-2007 03:49 PM
fresh install (fresh headache) powadha Slackware 2 03-06-2004 01:03 PM

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

All times are GMT -5. The time now is 11:34 PM.

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