On Fri, Mar 19, 2021 at 03:37:58PM -0500, Keith M. Bradley wrote:
> Good day all!
> 
> 
> Got to:
> 
>         su lfs
> 
> then ran:
> 
>         mkdir -v build
> 
> ... and got access denied?
> 

I think you are doing things out of order.

In 4.3 'Adding the LFS User' the lfs user is created and given
ownership of the directories below $LFS, including $LFS/sources if
you are following the book and using that directory as the place to
build.

At the end of that page you either login as user lfs through a
terminal, or you use 'su - lfs' to start a login shell.  From that
point you should be running the instructions as user lfs.

You then set up the environment, and eventually get to binutils
pass1 - the instructions for each package assume you have freshly
untarred the source (that is, if you had already extracted it,
delete that and re-extract it).

You seem to have extracted the binutils source as the root user,
which is why you cannot create a directory in it as user lfs.  I
suggest that you delete the extracted souce (presumably as root)
then go back to section 4.3 and make sure you have run all the
commands including 'su - lfs'.  Then check you have done everything
in section 4.4.

N.B. If the the 'Important' note near the bottom of 4.4 applies
(/etc/bash.bashrc) you must run *only* that command as the root
user, sourcing the bash_profile and the following stages should be
done as the lfs user from a login shell.

Perhaps you had to run that command as root, and continued as root ?

> 
> tried:
> 
> sudo mkdir -v build
> 
> ... and it said I was to be reported for illegal use of sudo ... still
> access denied.
> 

You should not run 'sudo' while building LFS.  I'm guessing your lfs
user is not allowed to run sudo on the ubuntu system, and that is
fine.  I'm assuming that you own the system, and therefore you have
been reported to yourself ;-)

> 
> Ubuntu 20.04 patched
> 
> 10.1
> 
> 

ĸen
-- 
  On average, the Panda feeds for 15 hours a day. This is the
same as an adult at home under quarantine, which is why we call
it a "Pandemic".
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to