Changeset 3f0c882 for chapter06/creatingdirs.xml
- Timestamp:
- 12/21/2004 07:38:32 PM (20 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 3d36131c
- Parents:
- aaa3260
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/creatingdirs.xml
raaa3260 r3f0c882 8 8 <?dbhtml filename="creatingdirs.html"?> 9 9 10 <para>Let's now create some structure in our LFS file system. Let's create 11 a directory tree. Issuing the following commands will create a more or less 12 standard tree:</para> 10 <para>Create a dirs tree:</para> 13 11 14 12 <screen><userinput>install -d /{bin,boot,dev,etc/opt,home,lib,mnt} … … 32 30 install -d /opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen> 33 31 34 <para>Directories are, by default, created with permission mode 755, but this35 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 the37 directories for temporary files.</para>38 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> and44 <filename class="directory">/var/tmp</filename> directories, but45 cannot remove other users' files from them. The latter is prohibited46 by the so-called <quote>sticky bit</quote> -- the highest bit in the 1777 bit47 mask.</para>48 49 <sect2>50 <title>FHS compliance note</title>51 52 <para>We have based our directory tree on the FHS standard (available at53 <ulink url="http://www.pathname.com/fhs/"/>). Besides the above created54 tree this standard stipulates the existence of55 <filename class="directory">/usr/local/games</filename> and56 <filename class="directory">/usr/share/games</filename>, but we don't57 much like these for a base system. However, feel free to make your system58 FHS-compliant. As to the structure of the59 <filename class="directory">/usr/local/share</filename> subdirectory, the FHS60 isn't precise, so we created here the directories that we think are needed.</para>61 62 </sect2>63 64 32 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.