diff options
Diffstat (limited to 'chapter03')
-rw-r--r-- | chapter03/creatingdirs.xml | 10 |
1 files changed, 5 insertions, 5 deletions
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: <userinput> mkdir $dirname</userinput> <userinput> cd $dirname</userinput> <userinput> mkdir bin etc include lib sbin share - src tmp var</userinput> + src var</userinput> <userinput> ln -s share/man man</userinput> <userinput> ln -s share/doc doc</userinput> <userinput> ln -s share/info info</userinput> @@ -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). </para> <blockquote><literallayout> <userinput>cd $LFS &&</userinput> <userinput>chmod 0750 root &&</userinput> - <userinput>chmod 1777 tmp usr/tmp usr/local/tmp var/tmp</userinput> + <userinput>chmod 1777 tmp var/tmp</userinput> </literallayout></blockquote> <para> |