From 5e40325fc2ddf3e60af6d47cb434e26099aebce6 Mon Sep 17 00:00:00 2001 From: Timothy Bauscher Date: Sun, 5 Jan 2003 16:19:00 +0000 Subject: 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 --- chapter05/adding-user.xml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 chapter05/adding-user.xml (limited to 'chapter05/adding-user.xml') 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 @@ + +Adding the user lfs + + +If you are logged in as root 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: lfs. As root, issue +the following commands to add the new user: + +useradd -s /bin/bash -m lfs +passwd lfs + +In order to grant the user lfs the proper permissions +to the $LFS/static directory, issue the following +command: + +chown -R lfs $LFS/static + +Next, login as user lfs. This can be accomplished +via a virtual console, display manager or with the substitute user +command: + +su - lfs + +The "-" instructs su to +start a new, clean shell. + + -- cgit v1.2.3-54-g00ecf