mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
changingowner: Add --from lfs for chown root:root commands
So if the user has not set $LFS properly, chown will do nothing instead of wreak havoc in the host distro. --from <user> has been available for Coreutils chown since 2000 so we don't need to raise the host system requirement.
This commit is contained in:
parent
7db37658c2
commit
6e179a9025
@ -33,9 +33,9 @@
|
|||||||
user <systemitem class="username">root</systemitem> by running the following
|
user <systemitem class="username">root</systemitem> by running the following
|
||||||
command:</para>
|
command:</para>
|
||||||
|
|
||||||
<screen><userinput>chown -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools}
|
<screen><userinput>chown --from lfs -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools}
|
||||||
case $(uname -m) in
|
case $(uname -m) in
|
||||||
x86_64) chown -R root:root $LFS/lib64 ;;
|
x86_64) chown --from lfs -R root:root $LFS/lib64 ;;
|
||||||
esac</userinput></screen>
|
esac</userinput></screen>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
Loading…
Reference in New Issue
Block a user