Adding the user lfs

When logged in as root, making a single mistake can damage or even wreck your system. Therefore we recommend that you build the packages in this chapter as an unprivileged user. You could of course use your own user name, but to make it easier to set up a clean work environment we'll create a new user lfs and use this one during the installation process. As root, issue the following commands to add the new user:

useradd -s /bin/bash -m lfs
passwd lfs

Now grant this new user lfs full access to $LFS/tools by giving it ownership of the directory:

chown lfs $LFS/tools

Next, login as user lfs. This can be done via a virtual console, through a display manager, or with the following substitute user command:

su - lfs

The "-" instructs su to start a new, clean shell.