mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
* Removed the creation of $LFS/usr/tmp and $LFS/usr/local/tmp
* don't chmod $LFS/usr/tmp and $LFS/usr/local/tmp git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@533 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
968689ed0b
commit
f3fe7330a1
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user