2 % This is part of CLFSja package.
4 % This is a CTIE change file for the original XML source of the CLFSbook.
7 <?xml version="1.0" encoding="ISO-8859-1"?>
9 <?xml version="1.0" encoding="UTF-8"?>
13 <title>Creating Directories</title>
15 <title>ディレクトリの生成</title>
19 <para>The commands in the remainder of the book should be run as
20 the <systemitem class="username">root</systemitem> user. Check
21 that ${CLFS} is set in the
22 <systemitem class="username">root</systemitem> user’s environment
23 before proceeding.</para>
26 本書のこれ以降で実行するコマンドはすべて <systemitem class="username">root</systemitem> ユーザーでログインして実行します。
27 <systemitem class="username">root</systemitem> ユーザーの環境にて環境変数 ${CLFS} がセットされていることを今一度確認してください。
32 <para os="b">It is time to create some structure in the CLFS file system. Create a
33 standard directory tree by issuing the following commands:</para>
36 CLFS ファイルシステムにおけるディレクトリ構成を作り出していきます。
37 以下のコマンドを実行して標準的なディレクトリを生成します。
42 <para os="d">Directories are, by default, created with permission mode 755,
43 but this is not desirable for all directories. In the commands above,
44 two changes are made—one to the home directory of user
45 <systemitem class="username">root</systemitem>, and another to the
46 directories for temporary files.</para>
49 ディレクトリは標準ではパーミッションモード 755 で生成されますが、すべてのディレクトリをこのままとするのは適当ではありません。
50 上のコマンド実行ではパーミッションを変更している箇所が二つあります。
52 class="username">root</systemitem> ユーザーのホームディレクトリに対してであり、もう一つはテンポラリディレクトリに対してです。
57 <para os="e">The first mode change ensures that not just anybody can enter
58 the <filename class="directory">/root</filename> directory—the
59 same as a normal user would do with his or her home directory. The
60 second mode change makes sure that any user can write to the
61 <filename class="directory">/tmp</filename> and
62 <filename class="directory">/var/tmp</filename> directories, but
63 cannot remove another user's files from them. The latter is prohibited
64 by the so-called <quote>sticky bit,</quote> the highest bit (1) in the
68 パーミッションモードを変更している一つめは <filename
69 class="directory">/root</filename> ディレクトリに対して、他のユーザーによるアクセスを制限するためです。
70 通常のユーザーが持つ、自分自身のホームディレクトリへのアクセス権設定と同じことを行ないます。
71 二つめのモード変更は <filename class="directory">/tmp</filename> や <filename
72 class="directory">/var/tmp</filename> ディレクトリに対して、どのユーザーも書き込み可能とし、ただし他のユーザーが作成したファイルは削除できないようにします。
73 ビットマスク 1777 の最上位ビット、いわゆる<quote>スティッキービット (sticky bit)</quote>を用いて実現します。
78 <title>FHS Compliance Note</title>
80 <title>FHS コンプライアンス情報</title>
84 <para>The directory tree is based on the Filesystem Hierarchy Standard
85 (FHS) (available at <ulink url="https://wiki.linuxfoundation.org/en/FHS"/>).
86 In addition to the tree created above, this standard stipulates the
87 existence of <filename class="directory">/usr/local/games</filename>
88 and <filename class="directory">/usr/share/games</filename>. The FHS
89 is not precise as to the structure of the <filename
90 class="directory">/usr/local/share</filename> subdirectory, so we
91 create only the directories that are needed. However, feel free to
92 create these directories if you prefer to conform more strictly to
96 ディレクトリツリーは 標準ファイルシステム構成 (Filesystem Hierarchy Standard; FHS) に基づいています。
97 (その情報は <ulink url="https://wiki.linuxfoundation.org/en/FHS"/> に示されています。)
98 上で生成したディレクトリに加えて、FHS では <filename class="directory">/usr/local/games</filename> と <filename
99 class="directory">/usr/share/games</filename> を規定していますが、一方で <filename
100 class="directory">/usr/local/share</filename> については明確にしていません。
101 したがって本書では必要なディレクトリのみを作成していくことにします。
102 もっとも FHS に準拠した構成を望むなら、どうぞ自由に作成してください。