diff options
Diffstat (limited to 'chapter06/creatingdirs.xml')
-rw-r--r-- | chapter06/creatingdirs.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chapter06/creatingdirs.xml b/chapter06/creatingdirs.xml index c0d8b1270..65708779a 100644 --- a/chapter06/creatingdirs.xml +++ b/chapter06/creatingdirs.xml @@ -25,14 +25,14 @@ ln -s ../var/tmp /usr</userinput></screen></para> <para>Normally, directories are created with permission mode 755, which isn't 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 +/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 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> -<para><screen><userinput>cd $LFS && +<para><screen><userinput>cd / && chmod 0750 root && chmod 1777 tmp var/tmp</userinput></screen></para> |