[lfs] 01/02: aboutlfs: Also mention umask in addition to export LFS= for bash profiles
| Newsgroups | gmane.linux.lfs.book |
|---|---|
| Message-ID | <[email protected]> |
This is an automated email from the git hooks/post-receive script. git pushed a commit to branch trunk in repository lfs. commit 625969c2de5402dce45ff0ae93c1b17ffe050e41 Author: Xi Ruoyao <[email protected]> AuthorDate: Sun Jan 12 11:43:36 2025 +0800 aboutlfs: Also mention umask in addition to export LFS= for bash profiles --- chapter02/aboutlfs.xml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/chapter02/aboutlfs.xml b/chapter02/aboutlfs.xml index 64229f114..158f8f3a5 100644 --- a/chapter02/aboutlfs.xml +++ b/chapter02/aboutlfs.xml @@ -57,24 +57,26 @@ given earlier on this page to set <envar>$LFS</envar> to the correct directory name and set umask to <literal>022</literal>.</para></caution> - <note><para>One way to ensure that the <envar>LFS</envar> variable is always - set is to edit the <filename>.bash_profile</filename> file in both your - personal home directory and in <filename>/root/.bash_profile</filename> and - enter the export command above. In addition, the shell specified in the + <note><para>One way to ensure that the <envar>LFS</envar> variable and the + umask are always set properly is to edit the + <filename>.bash_profile</filename> file in both your personal home + directory and in <filename>/root/.bash_profile</filename> and + enter the <command>export</command> and <command>umask</command> commands + above. In addition, the shell specified in the <filename>/etc/passwd</filename> file for all users that need the <envar>LFS</envar> variable must be bash to ensure that the - <filename>/root/.bash_profile</filename> file is incorporated as a part of + <filename>.bash_profile</filename> file is incorporated as a part of the login process.</para> <para>Another consideration is the method that is used to log into the host system. If logging in through a graphical display manager, the user's <filename>.bash_profile</filename> is not normally used when - a virtual terminal is started. In this case, add the export command to + a virtual terminal is started. In this case, add the commands to the <filename>.bashrc</filename> file for the user and <systemitem class="username">root</systemitem>. In addition, some distributions use an "if" test, and do not run the remaining <filename>.bashrc</filename> instructions for a non-interactive bash invocation. Be sure to place the - export command ahead of the test for non-interactive use.</para> + commands ahead of the test for non-interactive use.</para> </note> -- To stop receiving notification emails like this one, please contact the administrator of this repository. -- http://lists.linuxfromscratch.org/sympa/info/lfs-book Unsubscribe: See the above information page