Changeset ef13657 for chapter06/creatingdirs.xml
- Timestamp:
- 08/08/2004 02:11:09 AM (20 years ago)
- Branches:
- 6.0
- Children:
- 5ba3d1d
- Parents:
- 6e41459
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/creatingdirs.xml
r6e41459 ref13657 8 8 <?dbhtml filename="creatingdirs.html"?> 9 9 10 <para> Let's now create some structure in our LFS file system. Let's create11 a directory tree. Issuing the following commands will create a more or less 10 <para>It is time to create some structure in the LFS file system. 11 Create a directory tree. Issuing the following commands will create a 12 12 standard tree:</para> 13 13 … … 32 32 install -d /opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen> 33 33 34 <para>Directories are, by default, created with permission mode 755, but this 35 isn't desirable for all directories. In the commands above, we make two changes: 36 one to the home directory of <emphasis>root</emphasis>, and another to the 37 directories for temporary files.</para> 34 <para>Directories are, by default, created with permission mode 755, 35 but this is not desirable for all directories. In the commands above, 36 two changes are made -- one to the home directory of user 37 <emphasis>root</emphasis>, and another to the directories for 38 temporary files.</para> 38 39 39 <para>The first mode change ensures that not just anybody can enter the40 <filename class="directory">/root</filename> directory -- the same41 as a normal user would do with his or her home directory. 42 The second mode change makes sure that any user can write to the43 <filename class="directory">/tmp</filename> and 44 <filename class="directory">/var/tmp</filename> directories, but 45 cannot remove other users' files from them. The latter is prohibited 46 by the so-called <quote>sticky bit</quote> -- the highest bit in the 1777 bit 47 mask.</para>40 <para>The first mode change ensures that not just anybody can enter 41 the <filename class="directory">/root</filename> directory -- the same 42 as a normal user would do with his or her home directory. The second 43 mode change makes sure that any user can write to the <filename 44 class="directory">/tmp</filename> and <filename 45 class="directory">/var/tmp</filename> directories, but cannot remove 46 other users' files from them. The latter is prohibited by the 47 so-called <quote>sticky bit,</quote> the highest bit (1) in the 1777 48 bit mask.</para> 48 49 49 50 <sect2> 50 51 <title>FHS compliance note</title> 51 52 52 <para>We have based our directory tree on the FHS standard (available at 53 <ulink url="http://www.pathname.com/fhs/"/>). Besides the above created 54 tree this standard stipulates the existence of 55 <filename class="directory">/usr/local/games</filename> and 56 <filename class="directory">/usr/share/games</filename>, but we don't 57 much like these for a base system. However, feel free to make your system 58 FHS-compliant. As to the structure of the 59 <filename class="directory">/usr/local/share</filename> subdirectory, the FHS 60 isn't precise, so we created here the directories that we think are needed.</para> 53 <para>The directory tree is based on the Filesystem Hierarchy Standard 54 (FHS) standard (available at <ulink 55 url="http://www.pathname.com/fhs/"/>). Besides the tree created above, 56 this standard stipulates the existence of <filename 57 class="directory">/usr/local/games</filename> and <filename 58 class="directory">/usr/share/games</filename>. We do not recommend 59 these for a base system, however, feel free to make the system 60 FHS-compliant. The FHS is not precise as to the structure of the 61 <filename class="directory">/usr/local/share</filename> subdirectory, 62 so we just created the directories that are needed.</para> 61 63 62 64 </sect2> 63 65 64 66 </sect1> 67
Note:
See TracChangeset
for help on using the changeset viewer.