LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-08-2013, 05:32 AM   #1
DeeGee
Member
 
Registered: Apr 2013
Distribution: Debian, Linux From Scratch, Mint
Posts: 118

Rep: Reputation: 24
[LFS 7.3] Login on reboot


I have a really silly question.

I booted LFS for the first time and it runs fine, till I get to the login where I have to enter the password and username. And I'e tried everything but it keeps on saying either invalid argument or password not accepted.

I have a clone of my LFS system, from which I have not logged out yet so I can check for the files. So what files should I check to find the login? I read on the forum and found /etc/passwd and /etc/shadow/ but my shadow file is empty.

All help is very much appreciated. Its very frustrating to have come so far but be halted because of some small asentmindness!
 
Old 05-08-2013, 05:35 AM   #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
Hi

Are you loging as root
 
Old 05-08-2013, 05:38 AM   #3
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
can you post your /etc/passwd file
 
Old 05-08-2013, 06:21 AM   #4
DeeGee
Member
 
Registered: Apr 2013
Distribution: Debian, Linux From Scratch, Mint
Posts: 118

Original Poster
Rep: Reputation: 24
Hi,
Here it is:

Code:
root:/# cat /etc/passwd
root:$6$g3HMOabu40/mOMbV$jCMi7tZQwNWl0jYlTihW2Ub.ISPzQNA.hQ3n5WFmuoDxYoUd8bdOmXNXMEU3u2.qHjAAWHQA7Figk7DRriU.8/:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/dev/null:/bin/false
nobody:x:99:99:Unprivileged User:/dev/null:/bin/false
 
Old 05-08-2013, 06:24 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Have you skipped these parts?
- 6.26.2. Configuring Shadow
- 6.26.3. Setting the root password

You can (re)do them from the chrooted environment.
 
Old 05-09-2013, 04:34 AM   #6
DeeGee
Member
 
Registered: Apr 2013
Distribution: Debian, Linux From Scratch, Mint
Posts: 118

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by druuna View Post
Have you skipped these parts?
- 6.26.2. Configuring Shadow
- 6.26.3. Setting the root password

You can (re)do them from the chrooted environment.
Seems like I've forgotten root password. Well, I used my clone and now all's well.

Also just a clarification:

Can I safely delete my host system files?
 
Old 05-09-2013, 04:48 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by DeeGee View Post
Also just a clarification:

Can I safely delete my host system files?
If LFS is functioning the way it should then you can remove the host completely.

I would advise to keep the host around for a little while, if something goes wrong with LFS you can boot into your host enter the chrooted environment and use that to tackle the problem. I'm not sure if a life-cd can help (this being a VM).
 
Old 05-09-2013, 11:17 PM   #8
DeeGee
Member
 
Registered: Apr 2013
Distribution: Debian, Linux From Scratch, Mint
Posts: 118

Original Poster
Rep: Reputation: 24
Everything works fine at the moment. About the rescue option : I can change the boot order of the VM through VM settings. However is it ok to use Live CD as it doesn't support LFS 7.0 upwards?

Also another niggle. I saw the same question on the forum but search as I can, I cannot locate it.

My command line shows
bash-4.2#
What have I done wrong/omitted?

Last edited by DeeGee; 05-10-2013 at 01:30 AM.
 
Old 05-10-2013, 02:36 AM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by DeeGee View Post
Everything works fine at the moment. About the rescue option : I can change the boot order of the VM through VM settings. However is it ok to use Live CD as it doesn't support LFS 7.0 upwards?
I wasn't talking about the LFS live cd but a generic Linux lice cd.

The point being that you can boot into your machine (VM) with the live cd, mount the appropriate partitions and repair the damage if needed.

Quote:
Originally Posted by DeeGee
Also another niggle. I saw the same question on the forum but search as I can, I cannot locate it.

My command line shows
bash-4.2#
What have I done wrong/omitted?
I don't understand the above quote. Which question are you talking about and what does this have to do with a, seemingly normal, bash prompt?

Please elaborate.
 
Old 05-10-2013, 03:00 AM   #10
DeeGee
Member
 
Registered: Apr 2013
Distribution: Debian, Linux From Scratch, Mint
Posts: 118

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by druuna View Post
I wasn't talking about the LFS live cd but a generic Linux lice cd.

The point being that you can boot into your machine (VM) with the live cd, mount the appropriate partitions and repair the damage if needed.
Sorry I misread your post. Yes, I can use Live CD with VM. No problem there thanks

Quote:
I don't understand the above quote. Which question are you talking about and what does this have to do with a, seemingly normal, bash prompt?

Please elaborate.
When I boot into my LFS system the terminal only shows
Code:
bash-4.2#
instead of the usual
Code:
user@host#
 
Old 05-10-2013, 03:11 AM   #11
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by DeeGee View Post
When I boot into my LFS system the terminal only shows
Code:
bash-4.2#
instead of the usual
Code:
user@host#
Ah, OK. Have a look at BLFS chapter 3.

If you have finished LFS you have a very basic Linux box, which needs some extras to make it "workable" (also see your other thread).
 
1 members found this post helpful.
  


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
Add some color (and other stuff) to your LFS login stoat Linux From Scratch 1 06-20-2012 10:35 AM
[SOLVED] Problem with LFS and reboot/turnoff pc Benyi Linux From Scratch 4 02-16-2012 08:34 AM
[SOLVED] Too many login sessions, have to reboot to login scott_audio Linux - Newbie 1 08-10-2009 01:56 PM
reboot during lfs installation? ruben22 Linux From Scratch 3 12-14-2005 06:35 PM
cannot login as user 'lfs' [su - lfs] mayasedai Linux From Scratch 2 07-26-2005 06:10 AM

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

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