LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2023, 06:46 PM   #1
Breizh29
LQ Newbie
 
Registered: Mar 2023
Posts: 3

Rep: Reputation: 0
Cannot login ...


Hello,

I have just finished installing my LFS following the instructions in the book but I must have forgotten something.
My setup is as follows:
Archlinux host system boots in UEFI mode,
AMD processor.

I want to start LFS using archlinux grub. LFS starts up fine and my problem appears as login prompt.
login: is displayed and I quickly see the following message appear:
(udev worker) (202) used greatest stack depth: 12326 bytes left.

This message is followed a few second later by another one: snd-hda-intel 0000:2d:00.4: cannot probe codecs giving up.

When I enter my user name and my password I receive an incorrect login message.
 
Old 03-31-2023, 08:30 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
so the CLI is spitting out messages while you still need to log in?
what do you do?
just type over them like they never showed up, like a normal login.

anything other then that DOnno.
 
1 members found this post helpful.
Old 04-01-2023, 05:45 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,637
Blog Entries: 19

Rep: Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469
The message has to do with your sound card. It shouldn't prevent you from logging in.

You have received a login prompt so it ought to be OK to enter a login name. I can't remember if you already have a user account at this stage; it's probably safer to log in as root. Then wait for the password prompt and give the root password. You can create a user account later if necessary using the useradd command.

Last edited by hazel; 04-01-2023 at 05:47 AM.
 
1 members found this post helpful.
Old 04-01-2023, 07:42 AM   #4
Breizh29
LQ Newbie
 
Registered: Mar 2023
Posts: 3

Original Poster
Rep: Reputation: 0
Hello and thanks for answers.

I have the login prompt and I can enter the root login name. Then I receive the password prompt and I can enter the password but I have an ‘login incorrect’ message.
I had also created a user account during the chroot but I have exactly the same problem. So I'm still stuck on the login…
I wonder if my problem is not related to the ‘linux console’ and/or a ‘locale’ problem,

Here is the journalctl:
Quote:
Mar 31 16:50:32 lfs systemd[1]: Startup finished in 21.511s (firmware) + 5.856s (loader) + 2.630s (kernel) + 962ms (userspace) = 30.961s.
Mar 31 16:50:36 lfs kernel: (udev-worker) (203) used greatest stack depth: 12336 bytes left
Mar 31 16:50:51 lfs nscd[271]: 271 recherche fichier surveillé `/etc/netgroup': Aucun fichier ou dossier de ce type
Mar 31 16:51:01 lfs login[268]: invalid password for 'root' *on '/dev/tty1'
Mar 31 16:51:21 lfs login[268]: invalid password for 'root' *on '/dev/tty1'
Mar 31 16:51:29 lfs kernel: snd_hda_intel 0000:2d:00.4: Cannot probe codecs, giving up
Mar 31 16:51:41 lfs login[268]: invalid password for 'root' *on '/dev/tty1'
Mar 31 16:51:53 lfs systemd[1]: getty@tty1.service: Deactivated successfully.
Mar 31 16:51:53 lfs systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 1.
Mar 31 16:51:53 lfs systemd[1]: Stopped Getty on tty1.
Mar 31 16:51:53 lfs systemd[1]: Started Getty on tty1.
Mar 31 16:52:05 lfs login[294]: invalid password for 'root' *on '/dev/tty1'
Mar 31 16:52:27 lfs login[294]: invalid password for 'root' *on '/dev/tty1'
Mar 31 16:52:45 lfs login[294]: invalid password for 'root' *on '/dev/tty1'
Mar 31 16:52:56 lfs systemd[1]: getty@tty1.service: Deactivated successfully.
Mar 31 16:52:56 lfs systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 2.
Mar 31 16:52:56 lfs systemd[1]: Stopped Getty on tty1.
Mar 31 16:52:56 lfs systemd[1]: Started Getty on tty1.
Mar 31 16:54:00 lfs agetty[297]: tty1: invalid character 0x1b in login name
Mar 31 16:54:10 lfs systemd[1]: getty@tty1.service: Deactivated successfully.
Mar 31 16:54:10 lfs systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 3.
Mar 31 16:54:10 lfs systemd[1]: Stopped Getty on tty1.

Last edited by Breizh29; 04-01-2023 at 07:44 AM.
 
Old 04-01-2023, 07:51 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,637
Blog Entries: 19

Rep: Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469
Quote:
Originally Posted by Breizh29 View Post
I wonder if my problem is not related to the ‘linux console’ and/or a ‘locale’ problem,
A good way to test your password for corruption by a bad locale is to type it as a response to the login prompt. Your login name is visible, so you can check that what you see is what you thought you were typing.
 
Old 04-01-2023, 08:05 AM   #6
Breizh29
LQ Newbie
 
Registered: Mar 2023
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hazel View Post
A good way to test your password for corruption by a bad locale is to type it as a response to the login prompt. Your login name is visible, so you can check that what you see is what you thought you were typing.
Oh yeah I hadn't thought of that. And having done so tells me that the password I see is the right one
 
Old 04-01-2023, 08:15 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,637
Blog Entries: 19

Rep: Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469Reputation: 4469
What about logging into your host system, chrooting over to LFS, and deleting the root password from /etc/shadow? Then you should be able to log in as root without a password and you can set a new one.

If the new password misbehaves in the same way, then I can't help you any further!
 
1 members found this post helpful.
Old 04-01-2023, 09:19 AM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by hazel View Post
What about logging into your host system, chrooting over to LFS, and deleting the root password from /etc/shadow? Then you should be able to log in as root without a password and you can set a new one.

If the new password misbehaves in the same way, then I can't help you any further!
that is what I was thinking. just chroot that system then do it again "sam".
 
  


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] Fast login via ssh / Slow login via login manager with machine in AD-domain c01d Linux - Server 2 03-01-2016 01:52 AM
how to disable "last login log" & disable "last login message" when start login. hocheetiong Linux - Newbie 4 02-08-2011 05:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:12 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
Open Source Consulting | Domain Registration