diff --git a/chapter03/creatingdirs.xml b/chapter03/creatingdirs.xml index 317fdb5ee..f67ade0c6 100644 --- a/chapter03/creatingdirs.xml +++ b/chapter03/creatingdirs.xml @@ -17,7 +17,7 @@ Issuing the following commands will create a default directory layout:    mkdir $dirname    cd $dirname    mkdir bin etc include lib sbin share - src tmp var + src var    ln -s share/man man    ln -s share/doc doc    ln -s share/info info @@ -41,15 +41,15 @@ desired for all directories. The first change is a mode 0750 for the $LFS/root directory. This is to make sure that not just everybody can enter the /root directory (the same a user would do with /home/username directories). The second change is a mode 1777 for the tmp -directories. This way, any user can write data to the /tmp directory but -cannot remove another user's files (the latter is caused by -the so-called "sticky bit" - bit 1 of the 1777 bit mask). +directories. This way, any user can write data to the /tmp or /var/tmp +directory but cannot remove another user's files (the latter is caused +by the so-called "sticky bit" - bit 1 of the 1777 bit mask).
cd $LFS && chmod 0750 root && - chmod 1777 tmp usr/tmp usr/local/tmp var/tmp + chmod 1777 tmp var/tmp