On Fri, 2010-10-22 at 08:59 -0700, Nolan wrote:
> Can I change the directory and file ownership to "lfs" with a chown, or 
> is the fact that the programs were compiled as
> "root" have a detrimental effect?

The problem isn't that you're running as root - it's that you found that
you needed to run as root. That's a sign that you've done something
wrong somewhere in the instructions, since the 'lfs' user should have
permission to write to anywhere it *should* try to write to.

Now, that could simply be that you've not run the commands giving 'lfs'
permission to write to the necessary locations - in which case, running
as root was harmless.

But it could also be that you've mistyped one of the build steps, and
the 'lfs' user is trying to write to locations it *shouldn't* be able to
write to - for example, you ran something with --prefix=/usr instead
of /tools. In that case, running as root is potentially disastrous,
since you might be overwriting files belonging to the host distribution,
rendering it unbootable.

Simon.

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to