On 12/31/2019 6:24 PM, Flareon Zulu wrote:

On December 31, 2019, at 18:15, Bruce Dubbs <[email protected]> wrote:

>On 12/31/19 4:47 PM, Alan Feuerbacher wrote:
>> Another question on building LFS Version 20191222-systemd:
>> In Section "5.37. Changing Ownership" there's a Note:
>>
>> "The commands in the remainder of this book must be performed while
>> logged in as user root and no longer as user lfs. Also, double check
>> that $LFS is set in root's environment."
>>
>> At this point in the build process I'm logged in as user lfs, having
>> done so with "su - lfs" back in Section "4.3. Adding the LFS User".
>> I could "exit" and get back to whatever user I was, and then do
>> "su - root" or "su root" or perhaps something else.
>>
>> How do you recommend logging in now as user root?
>>
>> Sorry, I'm not fully confident that I know how a shell versus a
>> login shell plays in the LFS environment.
>Use 'exit' to return to the previous user.  You will need to change to
>the root user if you are not already there in order to do some
>preliminary work.  Then in Section 6.4 you will enter chroot (only root
>can run that) and will be the root user there.  Being in chroot should
>be apparent from the '(lfs chroot)' part of the prompt.
>To exit chroot, again use 'exit', but you will not need to do that until
>you finish the book.
>Note the the difference between a login shell and a non-login shell is
>the initialization scripts that are run.  See the bash man page for
>details in the INVOCATION section.
>   -- Bruce
>--
>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

Mr. Bruce, he was asking about the specific command to use, not just about the shell. Though Mr. Alan should be looking these things up before coming to the support list, as otherwise there may never be any learning.

If you actually read what I wrote, you'd have seen that I have indeed carefully looked things up for myself.

But some things are not written clearly -- which is why I asked for help in understanding.

To make my request perfectly clear, in the section 5.37 of the LFS book, how does one properly login to root? With "su root" or "su - root"? The book  does not say. And since I'm fooling with LFS in order to learn these things, I want enough information to get real understanding -- not just a monkey-see-monkey-do answer.

Alan


-- 
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