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>Adding the CLFS User</title>
15 <title>CLFS ユーザーの追加</title>
19 <para>When logged in as user <systemitem class="username">root</systemitem>,
20 making a single mistake can damage or destroy a system. Therefore, we
21 recommend building the packages as an unprivileged user.
22 You could use your own user name, but to make it easier to set up a clean
23 work environment, create a new user called <systemitem
24 class="username">clfs</systemitem> as a member of a new group (also named
25 <systemitem class="groupname">clfs</systemitem>) and use this user during
26 the installation process. As <systemitem class="username">root</systemitem>,
27 issue the following commands to add the new user:</para>
30 <systemitem class="username">root</systemitem> ユーザーでログインしていると、ちょっとした誤操作がもとで、システムを破壊する重大な事態につながることがあります。
31 そこでパッケージのビルドにあたっては通常のユーザー権限にて作業することにします。
32 あなた自身のユーザーを利用するのでも構いませんが、全く新しいユーザー環境として <systemitem
33 class="username">clfs</systemitem> というユーザーを作成するのが分かりやすいでしょう。
34 所属するグループも <systemitem class="groupname">clfs</systemitem> という名で作成します。
35 ビルド作業においてはこのユーザーを利用していきます。
36 そこで <systemitem class="username">root</systemitem> ユーザーになって、新たなユーザーを追加する以下のコマンドを実行します。
41 <title>The meaning of the command line options:</title>
43 <title>コマンドラインオプションの意味</title>
47 <para>This makes <command>bash</command> the default shell for
48 user <systemitem class="username">clfs</systemitem>.</para>
51 <systemitem class="username">clfs</systemitem> ユーザーが利用するデフォルトのシェルを <command>bash</command> とします。
56 <para>The build instructions assume that the <command>bash</command>
57 shell is in use.</para>
60 ビルド手順においては <command>bash</command> シェルを既に用いているものとします。
65 <para>This option adds the new user to the
66 <systemitem class="groupname">clfs</systemitem> group.</para>
69 このオプションは <systemitem class="groupname">clfs</systemitem> グループに対して新たなユーザーを追加します。
74 <para>This option sets the user's home directory, but does not create
75 it. We could have used <option>-m</option> to tell
76 <command>useradd</command> to create the directory as well, but this
77 would also copy the contents of the host system's
78 <filename class="directory">/etc/skel</filename> directory into the new
79 user's home. We would prefer to have a clean user environment, so we
80 just create an empty directory after adding the user.</para>
83 このオプションはユーザーのホームディレクトリを設定するものですが、ディレクトリ生成は行いません。
84 <command>useradd</command> コマンドに <option>-m</option> オプションを与えて実行すればホームディレクトリの生成を行うこともできます。
85 ただこの場合にはホストシステムの <filename
86 class="directory">/etc/skel</filename> ディレクトリからファイルコピーが行われてしまいます。
87 ここではクリーンなユーザー環境を生成することにします。
88 つまりユーザー追加を行った後に空のホームディレクトリを生成するという方法をとります。
93 <para>This is the actual name for the created group and user.</para>
96 生成するグループおよびユーザーの名称を与えます。
101 <para>To log in as <systemitem class="username">clfs</systemitem> (as
102 opposed to switching to user <systemitem class="username">clfs</systemitem>
103 when logged in as <systemitem class="username">root</systemitem>, which
104 does not require the <systemitem class="username">clfs</systemitem> user
105 to have a password), give <systemitem class="username">clfs</systemitem>
109 <systemitem class="username">clfs</systemitem> ユーザーとしてログインするために <systemitem
110 class="username">clfs</systemitem> に対するパスワードを設定します。
111 (<systemitem class="username">root</systemitem> ユーザーでログインしている時に <systemitem
112 class="username">clfs</systemitem> へのユーザー切り替えを行なう場合には <systemitem
113 class="username">clfs</systemitem> ユーザーのパスワードは設定しておく必要はありません。)
118 <para>As <systemitem class="username">root</systemitem>,
119 grant <systemitem class="username">clfs</systemitem> full access to
120 <filename class="directory">${CLFS}/cross-tools</filename> and
121 <filename class="directory">${CLFS}/tools</filename> by making <systemitem
122 class="username">clfs</systemitem> the directorys' owner:</para>
125 <systemitem class="username">root</systemitem> ユーザーとなり、<filename
126 class="directory">${CLFS}/cross-tools</filename> と <filename
127 class="directory">${CLFS}/tools</filename> のディレクトリ所有者を <systemitem
128 class="username">clfs</systemitem> とすることにより <systemitem
129 class="username">clfs</systemitem> のフルアクセス権限を与えます。
134 <para>If a separate working directory was created as suggested, run the
135 following command as <systemitem class="username">root</systemitem> to
136 give user <systemitem class="username">clfs</systemitem> ownership of this
137 directory as well:</para>
140 前述したような作業ディレクトリを作成している場合は <systemitem
141 class="username">root</systemitem> ユーザーになって以下のコマンドを実行します。
142 その作業ディレクトリに対しても所有者を <systemitem
143 class="username">clfs</systemitem> ユーザーとします。
148 <para>Next, login as user <systemitem class="username">clfs</systemitem>.
149 This can be done via a virtual console, through a display manager, or
150 with the following substitute user command:</para>
153 <systemitem class="username">clfs</systemitem> でログインします。
154 これはディスプレイマネージャーを通じて仮想端末を用いることもできます。
155 要は以下のユーザーコマンドに相当するログインを行います。
160 <para>The <quote><parameter>-</parameter></quote> instructs
161 <command>su</command> to start a login shell as opposed to a non-login
162 shell. The difference between these two types of shells can be found
163 in detail in <filename>bash(1)</filename> and <command>info
164 bash</command>.</para>
167 パラメーター<quote><parameter>-</parameter></quote>は <command>su</command> コマンドの実行において、非ログイン (non-login) シェルではなく、ログインシェルを起動することを指示します。
168 ログインシェルとそうでないシェルの違いについては <filename>bash(1)</filename> や <command>info bash</command> を参照してください。
173 <para>Until specified otherwise, all commands from this point on
174 should be done as the <systemitem class="username">clfs</systemitem>
178 特に指定を行わない限りここから先のコマンド実行は、すべて <systemitem
179 class="username">clfs</systemitem> ユーザーにより行っていくことになります。