OSDN Git Service

GIT-20170514.
[clfsja/cross-lfs-ja.git] / src / boot / common / creatingdirs.ch
1 %
2 % This is part of CLFSja package.
3 %
4 % This is a CTIE change file for the original XML source of the CLFSbook.
5 %
6 @x
7 <?xml version="1.0" encoding="ISO-8859-1"?>
8 @y
9 <?xml version="1.0" encoding="UTF-8"?>
10 @z
11
12 @x
13   <title>Creating Directories</title>
14 @y
15   <title>ディレクトリの生成</title>
16 @z
17
18 @x
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&rsquo;s environment
23        before proceeding.</para>
24 @y
25       <para>
26       本書のこれ以降で実行するコマンドはすべて <systemitem class="username">root</systemitem> ユーザーでログインして実行します。
27       <systemitem class="username">root</systemitem> ユーザーの環境にて環境変数 ${CLFS} がセットされていることを今一度確認してください。
28       </para>
29 @z
30
31 @x
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>
34 @y
35   <para os="b">
36   CLFS ファイルシステムにおけるディレクトリ構成を作り出していきます。
37   以下のコマンドを実行して標準的なディレクトリを生成します。
38   </para>
39 @z
40
41 @x
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&mdash;one to the home directory of user
45   <systemitem class="username">root</systemitem>, and another to the
46   directories for temporary files.</para>
47 @y
48   <para os="d">
49   ディレクトリは標準ではパーミッションモード 755 で生成されますが、すべてのディレクトリをこのままとするのは適当ではありません。
50   上のコマンド実行ではパーミッションを変更している箇所が二つあります。
51   一つは <systemitem
52   class="username">root</systemitem> ユーザーのホームディレクトリに対してであり、もう一つはテンポラリディレクトリに対してです。
53   </para>
54 @z
55
56 @x
57   <para os="e">The first mode change ensures that not just anybody can enter
58   the <filename class="directory">/root</filename> directory&mdash;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
65   1777 bit mask.</para>
66 @y
67   <para os="e">
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>を用いて実現します。
74   </para>
75 @z
76
77 @x
78     <title>FHS Compliance Note</title>
79 @y
80     <title>FHS コンプライアンス情報</title>
81 @z
82
83 @x
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
93     the FHS.</para>
94 @y
95     <para>
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 に準拠した構成を望むなら、どうぞ自由に作成してください。
103     </para>
104 @z