diff options
author | Timothy Bauscher <timothy@linuxfromscratch.org> | 2003-01-05 16:19:00 +0000 |
---|---|---|
committer | Timothy Bauscher <timothy@linuxfromscratch.org> | 2003-01-05 16:19:00 +0000 |
commit | 5e40325fc2ddf3e60af6d47cb434e26099aebce6 (patch) | |
tree | 22135e55be865d0809f7be116369b7d1b52cca50 /chapter05/adding-user.xml | |
parent | 2ae2d484bd3ccf46810df229c7986b1f5581ccbb (diff) |
Applied a modified version of Alex's patch to split the in two.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2283 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/adding-user.xml')
-rw-r--r-- | chapter05/adding-user.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/chapter05/adding-user.xml b/chapter05/adding-user.xml new file mode 100644 index 000000000..f36d5578f --- /dev/null +++ b/chapter05/adding-user.xml @@ -0,0 +1,30 @@ +<sect1 id="ch05-addinguser"> +<title>Adding the user lfs</title> +<?dbhtml filename="addinguser.html" dir="chapter05"?> + +<para>If you are logged in as <emphasis>root</emphasis> during Chapter 5, +your host system can be damaged by a single mistake. We recommend that +you build the packages in Chapter 5 as an unprivileged user. You could use +your own user name, but to ensure a clean build environment, we'll create a +new user: <emphasis>lfs</emphasis>. As <emphasis>root</emphasis>, issue +the following commands to add the new user:</para> + +<para><screen><userinput>useradd -s /bin/bash -m lfs +passwd lfs</userinput></screen></para> + +<para>In order to grant the user <emphasis>lfs</emphasis> the proper permissions +to the <filename>$LFS/static</filename> directory, issue the following +command:</para> + +<para><screen><userinput>chown -R lfs $LFS/static</userinput></screen></para> + +<para>Next, login as user <emphasis>lfs</emphasis>. This can be accomplished +via a virtual console, display manager or with the substitute user +command:</para> + +<para><screen><userinput>su - lfs</userinput></screen></para> + +<para>The "<userinput>-</userinput>" instructs <userinput>su</userinput> to +start a new, clean shell.</para> + +</sect1> |