LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-07-2024, 09:52 PM   #1
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,075

Rep: Reputation: 149Reputation: 149
Question [Rocky GNU/Linux] login broken


Rocky (clone of Redhat Enterprise) GNU/Linux 9.3 login is broken with four spaces after the prompt (I never press space, just this happens on every boot). It always says correct passwords are wrong, even blank ones. Before I deleted those (in chroot, then booted to Rocky) for root and the wheel user, when trying to login as the wheel user it had a large message saying something about a wrong context (didn't say bad password, but still didn't accept).
        I have no problem booting & logging into Slackware, OpenSUSE, Devuan, Mint, Neon, Gentoo, Arch/SystemRescue GNU/Linuxes on same PC... only Rocky is doing this weird behaviour.
Attached Thumbnails
Click image for larger version

Name:	100_1705.jpg
Views:	33
Size:	238.1 KB
ID:	42359  

Last edited by dchmelik; 01-07-2024 at 09:55 PM.
 
Old 01-07-2024, 10:51 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,875
Blog Entries: 1

Rep: Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077
Quote:
Originally Posted by dchmelik View Post
Before I deleted those
Before you deleted what!!!?

Does the same problem occur whether booted to multi-user.target, or in graphical.target the GUI greeter?

Does the same problem occur if you boot to single (aka rescue.target)(append 1 to linu line after striking E at Grub menu to get there)? If not and you can login you can scan the journal for clues, probably with PAM. You may need to refer to journal of prior boot, in which case, be sure /var/log/journal/ existed for at least one ordinary boot attempt before you look.
 
Old 01-07-2024, 11:16 PM   #3
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,075

Original Poster
Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by mrmazda View Post
Before you deleted what!!!?
'Those' refers to previous noun which is 'passwords'.

Quote:
Does the same problem occur whether booted to multi-user.target, or in graphical.target the GUI greeter?
I thought it normally boots multi-user. I won't use GUI (and if I can't login can't choose that anyway).

Quote:
Does the same problem occur if you boot to single (aka rescue.target)(append 1 to linu line after striking E at Grub menu to get there)? If not and you can login you can scan the journal for clues, probably with PAM. You may need to refer to journal of prior boot, in which case, be sure /var/log/journal/ existed for at least one ordinary boot attempt before you look.
Haven't tried tyet but guess I could soon, but dislike idea of scanning a 'journal' from what I've seen of these on other GNU/Linux (oldest ones don't use them and are easier).
        Could it be the installer was corrupt, and I should retry and check an md5sum or something?

Last edited by dchmelik; 01-07-2024 at 11:18 PM.
 
Old 01-07-2024, 11:33 PM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,875
Blog Entries: 1

Rep: Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077
Quote:
Originally Posted by dchmelik View Post
Quote:
Originally Posted by mrmazda View Post
Before you deleted what!!!?
'Those' refers to previous noun which is 'passwords'.
Deleted how?
 
Old 01-07-2024, 11:39 PM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,875
Blog Entries: 1

Rep: Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077
Quote:
Originally Posted by dchmelik View Post
dislike idea of scanning a 'journal' from what I've seen of these on other GNU/Linux (oldest ones don't use them and are easier).
An evolved "less" command is built into the systemd journalctl command. You don't need to search out what journal has what you need or where it's located. journalctl -b -1 opens the journal of the previous boot in scan mode. journalctl -b -1 > somefile.txt makes a plain text file copy of the previous boot's journal in the current directory for you to do with which as you please. The fine manual for journalctl will show you many options for narrowing down journal output to specific areas of interest.
 
Old 01-08-2024, 02:44 AM   #6
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,075

Original Poster
Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by mrmazda View Post
[...]Does the same problem occur whether booted to multi-user.target
That's what was set on my original boot!

Quote:
or in graphical.target the GUI greeter?
I don't have that installed.

Quote:
Does the same problem occur if you boot to single [...]?
Yes.

Quote:
Deleted how?
Code:
passwd -d user
 
Old 01-08-2024, 03:07 AM   #7
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,875
Blog Entries: 1

Rep: Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077
Quote:
Originally Posted by dchmelik View Post
Code:
passwd -d user
How many was that? Was it 100% of login users that had passwords set? If so, then you may need to chroot into the installed system, which allows to use the login used to reach chroot in effect in superuser mode, from which the passwd command can be run to establish password(s) for desired user(s).
 
Old 01-08-2024, 03:11 AM   #8
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,075

Original Poster
Rep: Reputation: 149Reputation: 149
I exlpained I already tried this with passwords and blank passwords, so never mind that. I just want to login and can't with both multi-user and single-user modes, seeing these broken login prompts.
        Even after this it (says it's automatically logging in but) still asks/rejects password with broken login prompt: http://forums.rockylinux.org/t/how-t...y-linux/6104/3.

Last edited by dchmelik; 01-08-2024 at 03:24 AM.
 
Old 01-08-2024, 03:24 AM   #9
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,875
Blog Entries: 1

Rep: Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077
I suggested what I did because I suspect having valid passwords in effect may correct the login misbehavior. IOW, PAM may be mishandling the login process because no valid passwords exist.
 
Old 01-08-2024, 03:36 AM   #10
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,075

Original Poster
Rep: Reputation: 149Reputation: 149
Found what the problem is. Rocky doesn't prompt (and wait for input) to ask if I want a boot-loader and overwrites/clobbers the one I have. When I booted with Rocky's GRUB2, I was able to login. Of course then I rebooted and overwrote that with my original from Slackware, then later tried to boot Rocky. That's when I saw the same broken login prompt.
        Apparently Rocky leaves no configuration details in a place other GNU/Linux can find and configure it to boot right. It apparently uses a special type of booting not just with several kernel parameters but maybe other stuff that's obscured in some configuration detail/file I haven't found. I need to transfer over this configuration, but it'd be best if it can just be better in the future to be detected automatically just as Debian/Devuan/Ubuntu/Mint/Neon, Gentoo, Arch all get their GRUB2 configuration detected to be configured to boot fine. RedHat is almost as old as Debian so I don't know why something this basic is broken on it... of course Debian/Devuan has broken things also. The only most reliable GNU/Linux is Slackware!

Last edited by dchmelik; 01-11-2024 at 08:03 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Upgrade from Rocky Linux 8 to Rocky Linux 9 LXer Syndicated Linux News 0 08-06-2022 11:53 AM
LXer: Alma and Rocky Linux release 8.5 builds, Rocky catches up with secure boot LXer Syndicated Linux News 0 11-17-2021 11:15 AM
LXer: Why GNU+Linux is > GNU/Linux and > just Linux LXer Syndicated Linux News 0 05-26-2010 05:50 PM
LXer: GNU/Linux and freedom: non-free software hidden in your GNU/Linux distribution LXer Syndicated Linux News 0 04-02-2010 11:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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