LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-15-2020, 12:09 PM   #1
chinnadas
Member
 
Registered: Feb 2020
Posts: 55

Rep: Reputation: Disabled
lfs-systemd root login incorrect


Hi,

i have successfully build lfs-systemd-9.1 i am not able to login both root-user and lfs-user pls find attachement.

(i have taken backup from another vm and build in new vm)
Attached Thumbnails
Click image for larger version

Name:	login-fails.PNG
Views:	87
Size:	31.7 KB
ID:	32995  

Last edited by chinnadas; 04-15-2020 at 06:30 PM.
 
Old 04-15-2020, 12:15 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Did you set a root passwd?
if not then you need to chroot back in and set 1
 
Old 04-20-2020, 06:35 AM   #3
Ratamahatta
Member
 
Registered: Feb 2012
Location: Germany
Distribution: siduction
Posts: 134

Rep: Reputation: 17
That's quite short, but of course, spiky0011 is right.
A little more verbose: look up an howto for chroot via your favourite search engine (the *buntu ones usually are quite detailed) and then check if you have some live/repair/install system on a CD or USB device with a kernel version very close to your installed one. Boot that system and chroot to the installed system (in a terminal, that is; you will be the root user of the chrooted system) and type passwd. After setting the new password, type exit (will leave the chrooted system and return to the one from the CD/USB). Then shutdown the system properly and boot into the installed system.

Another idea: If you think you remember the passwords but the system just doesn't accept them (any more), check the keyboard settings. A lot of installers use US keyboard for installation (or as a default) but the ones used in 90% of locations all over the world are localised ones. So if you didn't set a local keyboard during installation, after booting up the first time, the key map is likely different than during installation. (That blooming Ubuntu 12 messed that one up pretty badly for me.)

Last edited by Ratamahatta; 04-20-2020 at 06:44 AM. Reason: added info
 
Old 04-20-2020, 08:39 AM   #4
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
So it seems you finished LFS and rebooted into it. Chroot as in the end of ch6 after mounting virtual kernel stuff etc. as in ch6.2. Then inside the chroot you can (re)set your passwords. Setting the root password is done after you build and install shadow in ch6.
 
Old 04-20-2020, 09:39 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Quote:
Originally Posted by Ratamahatta View Post
A lot of installers use US keyboard for installation (or as a default) but the ones used in 90% of locations all over the world are localised ones. So if you didn't set a local keyboard during installation, after booting up the first time, the key map is likely different than during installation. (That blooming Ubuntu 12 messed that one up pretty badly for me.)
True but LFS doesn't have an installer; you build it in-situ. That's why it's called Linux From Scratch!
 
  


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] LFS 9.0 systemd: Does the LFS partition need to be a GPT or can it be msdos? davecan Linux From Scratch 3 01-08-2020 12:14 PM
"su - root" giving incorrect password but normal root login works. Fuzail Linux - Newbie 9 05-07-2013 06:24 AM
"su - root" giving incorrect password but normal root login works. ?? arashi256 Linux - Newbie 10 06-03-2010 03:13 AM
root login incorrect ,then passwd root,but error sunnycn Linux - Security 6 05-20-2002 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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