LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot login ... (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-login-4175723634/)

Breizh29 03-31-2023 06:46 PM

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.

BW-userx 03-31-2023 08:30 PM

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.

hazel 04-01-2023 05:45 AM

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.

Breizh29 04-01-2023 07:42 AM

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.


hazel 04-01-2023 07:51 AM

Quote:

Originally Posted by Breizh29 (Post 6421587)
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.

Breizh29 04-01-2023 08:05 AM

Quote:

Originally Posted by hazel (Post 6421589)
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 :mad::scratch:

hazel 04-01-2023 08:15 AM

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!

BW-userx 04-01-2023 09:19 AM

Quote:

Originally Posted by hazel (Post 6421596)
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".


All times are GMT -5. The time now is 03:57 AM.