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 10-31-2014, 10:01 PM   #31
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185

See the other thread. All is made clear there.
 
Old 11-01-2014, 04:43 AM   #32
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Assuming you trying to log in as "lfs" user using root password (that one you had changed recently).
Boot your system. When you will be asked for login, type "root" and hit Enter key. Being asked for password, type the password you had changed recently. Press Enter key. If you successfully logged in, run this command:
Code:
ls -l /home
it will show content of /home directory. /home has a subdirectory matches your user name. You must use it as your user name. Let say it's name is "lfs" as you expecting it. Reset (set new password) for this user by running:
Code:
passwd lfs
Once you will change user password, type "exit" and press Enter. You will be logged out. Now log in as "lfs" user with new "lfs" user's password.


I'm wondering how did you install LFS if you even can't log in and reset password?
 
Old 11-01-2014, 09:33 PM   #33
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Quote:
Originally Posted by Teufel

.../home has a subdirectory matches your user name. You must use it as your user name. Let say it's name is "lfs" as you expecting it....
Just FYI, there is no regular user yet at the point where this person is working. The /home directory is completely empty at this point. A newly finished LFS system has only the root user.
Quote:
Originally Posted by Teufel

I'm wondering how did you install LFS if you even can't log in and reset password?
Except for a set of temporary compiling tools, an LFS system is built entirely in a chroot environment in a host system.
 
Old 11-02-2014, 05:08 AM   #34
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by stoat View Post
Just FYI, there is no regular user yet at the point where this person is working. The /home directory is completely empty at this point. A newly finished LFS system has only the root user.
Except for a set of temporary compiling tools, an LFS system is built entirely in a chroot environment in a host system.

My assumption is he could create user account and that is why I suggested to check /home directory.
Nobody knows for sure whether he has user account or not (including OP itself since he tries to log in). Once he forgot a password he could forgot a user as well, isn't it? So ls /home is just a test for user existence.

And yes, thanks for remembering about chroot, I just forgot that my system built in the same way...
 
Old 11-02-2014, 07:38 AM   #35
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Quote:
Originally Posted by Teufel

My assumption is he could create user account and that is why I suggested to check /home directory.
You're right. He could have created a user account without mentioning it.
Quote:
Originally Posted by Teufel

Nobody knows for sure whether he has user account or not (including OP itself since he tries to log in).
In basan46's other thread on this matter (this one is a re-animated zombie-necro), it's clearer that he simply became confused and thought the "lfs" user in the host system was somehow present in the newly created LFS system.
 
  


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
The system forgot the root password trainee Slackware 3 05-17-2009 04:51 PM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
Help! Forgot Password matrix13 Linux - General 9 02-06-2007 09:13 AM
forgot password =( ?!?! j_miguel_y Linux - General 1 08-31-2004 11:58 AM
forgot my password ? i can change the password JrLz Linux - Security 9 04-06-2004 07:36 PM

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

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