On Sat, Feb 25, 2017 at 10:27:53AM +1100, Phils wrote:
> I am using Linux from Scratch 7.10.
> Host system is Ubuntu 16.04.
> 
> After a failed first attempt I have decided to go back to retry.
> In Chapter 3.1 in noticed it states "To create this directory, execute the
> following command, as user root, before starting the download session"
> mkdir -v $LFS/sources.
> 
> 
> My question is - do I logout and login as root (have set up root as ubuntu
> does not allow access to root automatically) and so having to setup $LFS and
> mount the drive again or do I use Sudo or something else? Also is it only
> that command and log back in as my usual user and reset LFS and mount again
> or do I use root from then on.
> 
> Sorry I could not find this question in the mailing list if it is there.
> Maybe not using the correct search wording.
> 
> Thanks
> 
To "become" root, 'su' is the normal command to use. So just run su
without specifying a user - and double check your environment
('printenv') immediately, to ensure LFS is still set, before running
the command.

And then exit so that you are again user lfs - until instructed to
become root on the way in to chroot.

In a different session (another tty, or another term running on
Xorg), after root has exited back to user lfs you should be able to
see what is mounted ('mount' or 'df') and therefore you can check
that it looks ok.

Using sudo is favoured by ubuntu, but the permitted commands for a
particular user will vary from machine to machine, and user to user.

ĸen
-- 
`I shall take my mountains', said Lu-Tze. `The climate will be good
for them.'     -- Small Gods
-- 
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