LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-28-2005, 12:08 PM   #1
dimaash
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Rep: Reputation: 0
Is it safe to build LFS as a root ?


Hi everyone!

I've read somewhere that it is okey to build LFS as a root and not lfs user.
I am bulding it using LFS Live-CD. So, is it safe to skip that part where i have to create lfs user and environment for him and just continue bulding it as root?

Thanks, appriciate in advance.
 
Old 07-28-2005, 12:49 PM   #2
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Rep: Reputation: 31
I too used the Live CD.
I would recomend following the book to the letter for your first run.
One little unintentional screw up and it's over.
You're back to page one.

And I quote from the book LFS 6.1

Code:
4.3. Adding the LFS User

When logged in as user root, making a single mistake can damage or destroy a system. Therefore, we
recommend building the packages in this chapter as an unprivileged user. You could use your own user name,
but to make it easier to set up a clean working environment, create a new user called lfs as a member of a new
group (also named lfs) and use this user during the installation process.
The main reason is that you will be soon setting up a special enviornment to build the temporary system before building the final LFS system. If you don't, you run the risk that your host system's enviornment may contaminate you're build enviornment or just screw something up that you may not know how to fix.

It's not worth being lazy from the start. Take no short cuts or live to regret it.

Tip.
The best thing that you can do is not to read as you go.

Read ahead.
Read a chapter till you understand it and have no more questions.
Then go.
Make a plan. Read the entire chapter 5 before starting it. Understand and flag which build locations you can delete and when. If in doubt stop and read again.

Good Luck!

Last edited by AxXium; 07-28-2005 at 01:07 PM.
 
Old 07-29-2005, 10:56 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,708
Blog Entries: 4

Rep: Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949
What is more, the lfs user has a different .bashrc file, which sets up environment variables differently from most users. These are what is appropriate to compile a "clean" new system.

Furthermore, since lfs is not a root-user on the host system, it cannot, accidentally, overwrite the host system.
 
Old 07-29-2005, 10:59 AM   #4
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Rep: Reputation: 31
exactly

It ain't worth taking a short cut.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
lfs 6.1 build on which linux distribution aneel Linux From Scratch 2 09-21-2005 08:24 AM
How to build LiveCD from LFS isilinux Linux From Scratch 1 08-24-2005 03:45 AM
samples of LFS build scripts dimaash Linux From Scratch 3 07-20-2005 09:35 PM
Can I build LFS using Slackware10.1 sources? kornerr Linux From Scratch 9 07-01-2005 01:09 PM
Build LFS from dos partition? Phonics3k Linux From Scratch 7 07-05-2002 12:48 PM

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

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