OSDN Git Service

[lfsja-git] GIT-20210422-g9a178619b 対応。
[lfsbookja/lfsja-git.git] / src / chapter08 / shadow.ch
1 %
2 % This is part of LFSbookja package.
3 %
4 % This is a CTIE change file for the original XML source of the LFSbook.
5 %
6 % $Author$
7 % $Rev$
8 % $Date::                           $
9 %
10 @x
11 <?xml version="1.0" encoding="ISO-8859-1"?>
12 @y
13 <?xml version="1.0" encoding="UTF-8"?>
14 @z
15
16 @x
17     <para>The Shadow package contains programs for handling passwords in a secure
18     way.</para>
19 @y
20     <para>
21     Shadow パッケージはセキュアなパスワード管理を行うプログラムを提供します。
22     </para>
23 @z
24
25 @x
26     <title>Installation of Shadow</title>
27 @y
28     <title>&InstallationOf1;Shadow&InstallationOf2;</title>
29 @z
30
31 @x
32       <para>If you would like to enforce the use of strong passwords, refer to
33       <ulink url="&blfs-book;postlfs/cracklib.html"/> for installing
34       CrackLib prior to building Shadow. Then add
35       <parameter>--with-libcrack</parameter> to the <command>configure</command>
36       command below.</para>
37 @y
38       <para>
39       もっと強力なパスワードを利用したい場合は <ulink
40       url="&blfs-book;postlfs/cracklib.html"/> にて示している Cracklib パッケージを参照してください。
41       Cracklib パッケージは Shadow パッケージよりも前にインストールします。
42       その場合 Shadow パッケージの <command>configure</command> スクリプトでは <parameter>--with-libcrack</parameter> パラメーターをつけて実行する必要があります。
43       </para>
44 @z
45
46 @x
47     <para>Disable the installation of the <command>groups</command> program
48     and its man pages, as Coreutils provides a better version. Also,
49     prevent the installation of manual pages that were already installed in
50     <xref linkend="ch-system-man-pages"/>:</para>
51 @y
52     <para>
53     <command>groups</command> コマンドとその man ページをインストールしないようにします。
54     これは Coreutils パッケージにて、より良いバージョンが提供されているからです。
55     また <xref linkend="ch-system-man-pages"/> にてインストールされている man ページはインストールしないようにします。
56     </para>
57 @z
58
59 @x
60     <para id="shadow-login_defs">Instead of using the default
61     <emphasis>crypt</emphasis> method, use the more secure
62     <emphasis>SHA-512</emphasis> method of password encryption, which also
63     allows passwords longer than 8 characters. It is also necessary to change
64     the obsolete <filename class="directory">/var/spool/mail</filename> location
65     for user mailboxes that Shadow uses by default to the <filename
66     class="directory">/var/mail</filename> location used currently:</para>
67 @y
68     <para id="shadow-login_defs">
69     パスワード暗号化に関して、デフォルトの <emphasis>crypt</emphasis> 手法ではなく、より強力な <emphasis>SHA-512</emphasis> 手法を用いることにします。
70     こうしておくと 8文字以上のパスワード入力が可能となります。
71     またメールボックスを収めるディレクトリとして Shadow ではデフォルトで <filename
72     class="directory">/var/spool/mail</filename> ディレクトリを利用していますが、これは古いものであるため <filename
73     class="directory">/var/mail</filename> ディレクトリに変更します。
74     </para>
75 @z
76
77 @x
78       <para>If you chose to build Shadow with Cracklib support, run the following:</para>
79 @y
80       <para>
81       Cracklib のサポートを含めて Shadow をビルドする場合は以下を実行します。
82       </para>
83 @z
84
85 @x
86     <para>Make a minor change to make the first group number generated
87     by useradd 1000:</para>
88 @y
89     <para>
90     useradd が生成する最初のグループ番号を 1000 とするような修正をします。
91     </para>
92 @z
93
94 @x
95     <para>Prepare Shadow for compilation:</para>
96 @y
97     <para>&PreparePackage1;Shadow&PreparePackage2;</para>
98 @z
99
100 @x
101       <title>The meaning of the configure option:</title>
102 @y
103       <title>&MeaningOfOption1;configure&MeaningOfOption2;</title>
104 @z
105
106 @x touch /usr/bin/passwd
107           <para>The file <filename>/usr/bin/passwd</filename> needs
108           to exist because its location is harcoded in some programs, and
109           the default location if it does not exist is not right.</para>
110 @y
111           <para>
112           プログラムの中には <filename>/usr/bin/passwd</filename> のパスがそのままハードコーディングされているものがあり、このファイルが存在しなかった場合のデフォルトパスが正しくなっていません。
113           </para>
114 @z
115
116 @x --with-group-name-max-length=32
117           <para>The maximum user name is 32 characters.  Make the maximum
118           group name the same.</para>
119 @y
120           <para>
121           ユーザー名とグループ名の最大文字数を 32 とします。
122           </para>
123 @z
124
125 @x
126     <para>Compile the package:</para>
127 @y
128     <para>&CompileThePackage;</para>
129 @z
130
131 @x
132     <para>This package does not come with a test suite.</para>
133 @y
134     <para>&NotExistTestsuite;</para>
135 @z
136
137 @x
138     <para>Install the package:</para>
139 @y
140     <para>&InstallThePackage;</para>
141 @z
142
143 @x
144     <para>Move a misplaced program to its proper location:</para>
145 @y
146     <para>
147     不適切なディレクトリにインストールされるプログラムを移動させます。
148     </para>
149 @z
150
151 @x
152     <title>Configuring Shadow</title>
153 @y
154     <title>&Configuring1;Shadow&Configuring2;</title>
155 @z
156
157 @x
158     <indexterm zone="conf-shadow">
159       <primary sortas="a-Shadow">Shadow</primary>
160       <secondary>configuring</secondary>
161     </indexterm>
162 @y
163     <indexterm zone="conf-shadow">
164       <primary sortas="a-Shadow">Shadow</primary>
165       <secondary>設定</secondary>
166     </indexterm>
167 @z
168
169 @x
170     <para>This package contains utilities to add, modify, and delete users and
171     groups; set and change their passwords; and perform other administrative
172     tasks. For a full explanation of what <emphasis>password shadowing</emphasis>
173     means, see the <filename>doc/HOWTO</filename> file within the unpacked
174     source tree. If using Shadow support, keep in mind that programs which need
175     to verify passwords (display managers, FTP programs, pop3 daemons, etc.)
176     must be Shadow-compliant. That is, they need to be able to work with
177     shadowed passwords.</para>
178 @y
179     <para>
180     このパッケージには、ユーザーやグループの追加、修正、削除、そのパスワードの設定、変更、その他の管理操作を行うユーティリティが含まれます。
181     <emphasis>パスワードのシャドウイング (password shadowing)</emphasis> というものが何を意味するのか、その詳細についてはこのパッケージのソース内にある <filename>doc/HOWTO</filename> を参照してください。
182     Shadow によるサポートを利用する場合、パスワード認証を必要とするプログラム (ディスプレイマネージャー、FTP プログラム、POP3、デーモン、など) は Shadow に準拠したものでなければなりません。
183     つまりそれらのプログラムが、シャドウ化された (shadowed) パスワードを受け入れて動作しなければならないということです。
184     </para>
185 @z
186
187 @x
188     <para>To enable shadowed passwords, run the following command:</para>
189 @y
190     <para>
191     Shadow によるパスワードの利用を有効にするために、以下のコマンドを実行します。
192     </para>
193 @z
194
195 @x
196     <para>To enable shadowed group passwords, run:</para>
197 @y
198     <para>
199     また Shadow によるグループパスワードを有効にするために、以下を実行します。
200     </para>
201 @z
202
203 @x
204     <para>Shadow's stock configuration for the <command>useradd</command>
205     utility has a few caveats that need some explanation. First, the default
206     action for the <command>useradd</command> utility is to create the user and
207     a group of the same name as the user. By default the user ID (UID) and
208     group ID (GID) numbers will begin with 1000. This means if you don't pass
209     parameters to <command>useradd</command>, each user will be a member of a
210     unique group on the system. If this behavior is undesirable, you'll need
211     to pass the <parameter>-g</parameter> parameter to
212     <command>useradd</command>. The default parameters are stored in the
213     <filename>/etc/default/useradd</filename> file. You may need to modify two
214     parameters in this file to suit your particular needs.</para>
215 @y
216     <para>
217     Shadow の <command>useradd</command> コマンドに対する通常の設定には、注意すべき点があります。
218     まず <command>useradd</command> コマンドによりユーザーを生成する場合のデフォルトの動作では、ユーザー名と同じグループを自動生成します。
219     ユーザーID (UID) とグループID (GID) は 1000 以上が割り当てられます。
220     <command>useradd</command> コマンドの利用時に特にパラメータを与えなければ、追加するユーザーのグループは新たな固有グループが生成されることになります。
221     この動作が不適当であれば <command>useradd</command> コマンドの実行時に <parameter>-g</parameter> パラメーターを利用することが必要です。
222     デフォルトで適用されるパラメーターは <filename>/etc/default/useradd</filename> ファイルに定義されています。
223     このファイルのパラメーター定義を必要に応じて書き換えてください。
224     </para>
225 @z
226
227 @x
228       <title><filename>/etc/default/useradd</filename> Parameter Explanations</title>
229 @y
230       <title><filename>/etc/default/useradd</filename> のパラメーター説明</title>
231 @z
232
233 @x
234           <para>This parameter sets the beginning of the group numbers used in
235           the /etc/group file. You can modify it to anything you desire. Note
236           that <command>useradd</command> will never reuse a UID or GID. If the
237           number identified in this parameter is used, it will use the next
238           available number after this. Note also that if you don't have a group
239           1000 on your system the first time you use <command>useradd</command>
240           without the <parameter>-g</parameter> parameter, you'll get a message
241           displayed on the terminal that says:
242           <computeroutput>useradd: unknown GID 1000</computeroutput>. You may
243           disregard this message and group number 1000 will be used.</para>
244 @y
245           <para>
246           このパラメーターは /etc/group ファイルにて設定されるグループIDの先頭番号を指定します。
247           必要なら任意の数値に設定することもできます。
248           <command>useradd</command> コマンドは既存の UID 値、GID 値を再利用することはありません。
249           このパラメーターによって定義された数値が実際に指定された場合、この値以降で利用可能な値が利用されます。
250           また <command>useradd</command> コマンドの実行時に、パラメーター <parameter>-g</parameter> を利用せず、かつグループID 1000 のグループが存在していなかった場合は、以下のようなメッセージが出力されます。
251           <computeroutput>useradd: unknown GID 1000</computeroutput> ("GID 1000 が不明です")
252           このメッセージは無視することができます。
253           この場合グループIDには 1000 が利用されます。
254           </para>
255 @z
256
257 @x
258           <para>This parameter causes <command>useradd</command> to create a
259           mailbox file for the newly created user. <command>useradd</command>
260           will make the group ownership of this file to the
261           <systemitem class="groupname">mail</systemitem> group with 0660
262           permissions. If you would prefer that these mailbox files are not
263           created by <command>useradd</command>, issue the following
264           command:</para>
265 @y
266           <para>
267           このパラメーターは <command>useradd</command> コマンドの実行によって、追加されるユーザー用のメールボックスに関するファイルが生成されます。
268           <command>useradd</command> コマンドは、このファイルのグループ所有者を <systemitem
269           class="groupname">mail</systemitem> (グループID 0660) に設定します。
270           メールボックスに関するファイルを生成したくない場合は、以下のコマンドを実行します。
271           </para>
272 @z
273
274 @x
275     <title>Setting the root password</title>
276 @y
277     <title>root パスワードの設定</title>
278 @z
279
280 @x
281     <para>Choose a password for user <emphasis>root</emphasis> and set it
282     by running:</para>
283 @y
284     <para>
285     <emphasis>root</emphasis> ユーザーのパスワードを設定します。
286     </para>
287 @z
288
289 @x
290     <title>Contents of Shadow</title>
291 @y
292     <title>&ContentsOf1;Shadow&ContentsOf2;</title>
293 @z
294
295 @x
296       <segtitle>Installed programs</segtitle>
297       <segtitle>Installed directory</segtitle>
298 @y
299       <segtitle>&InstalledProgram;</segtitle>
300       <segtitle>&InstalledDirectory;</segtitle>
301 @z
302
303 @x
304         <seg>chage, chfn, chgpasswd, chpasswd, chsh, expiry, faillog, gpasswd,
305         groupadd, groupdel, groupmems, groupmod, grpck, grpconv, grpunconv,
306         lastlog, login, logoutd, newgidmap, newgrp, newuidmap, newusers,
307         nologin, passwd, pwck, pwconv, pwunconv, sg (link to newgrp), su,
308         useradd, userdel, usermod, vigr (link to vipw), and vipw</seg>
309         <seg>/etc/default</seg>
310 @y
311         <seg>chage, chfn, chgpasswd, chpasswd, chsh, expiry, faillog, gpasswd,
312         groupadd, groupdel, groupmems, groupmod, grpck, grpconv, grpunconv,
313         lastlog, login, logoutd, newgidmap, newgrp, newuidmap, newusers,
314         nologin, passwd, pwck, pwconv, pwunconv, sg (newgrp へのリンク), su,
315         useradd, userdel, usermod, vigr (vipw へのリンク), vipw</seg>
316         <seg>/etc/default</seg>
317 @z
318
319 @x
320       <bridgehead renderas="sect3">Short Descriptions</bridgehead>
321 @y
322       <bridgehead renderas="sect3">&ShortDescriptions;</bridgehead>
323 @z
324
325 @x chage
326           <para>Used to change the maximum number of days between obligatory
327           password changes</para>
328 @y
329           <para>
330           ユーザーのパスワード変更を行うべき期間を変更します。
331           </para>
332 @z
333
334 @x chfn
335           <para>Used to change a user's full name and other information</para>
336 @y
337           <para>
338           ユーザーのフルネームや他の情報を変更します。
339           </para>
340 @z
341
342 @x chgpasswd
343           <para>Used to update group passwords in batch mode</para>
344 @y
345           <para>
346           グループのパスワードをバッチモードにて更新します。
347           </para>
348 @z
349
350 @x chpasswd
351           <para>Used to update user passwords in batch mode</para>
352 @y
353           <para>
354           ユーザーのパスワードをバッチモードにて更新します。
355           </para>
356 @z
357
358 @x chsh
359           <para>Used to change a user's default login shell</para>
360 @y
361           <para>
362           ユーザーのデフォルトのログインシェルを変更します。
363           </para>
364 @z
365
366 @x expiry
367           <para>Checks and enforces the current password expiration policy</para>
368 @y
369           <para>
370           現時点でのパスワード失効に関する設定をチェックし更新します。
371           </para>
372 @z
373
374 @x faillog
375           <para>Is used to examine the log of login failures, to set a maximum
376           number of failures before an account is blocked, or to reset the
377           failure count</para>
378 @y
379           <para>
380           ログイン失敗のログを調査します。
381           ログインの失敗を繰り返すことでアカウントがロックされる際の、最大の失敗回数を設定します。
382           またその失敗回数をリセットします。
383           </para>
384 @z
385
386 @x gpasswd
387           <para>Is used to add and delete members and administrators to
388           groups</para>
389 @y
390           <para>
391           グループに対してメンバーや管理者を追加、削除します。
392           </para>
393 @z
394
395 @x groupadd
396           <para>Creates a group with the given name</para>
397 @y
398           <para>
399           指定した名前でグループを生成します。
400           </para>
401 @z
402
403 @x groupdel
404           <para>Deletes the group with the given name</para>
405 @y
406           <para>
407           指定された名前のグループを削除します。
408           </para>
409 @z
410
411 @x groupmems
412           <para>Allows a user to administer his/her own group membership list
413           without the requirement of super user privileges.</para>
414 @y
415           <para>
416           スーパーユーザー権限を持たなくても、自分自身のグループのメンバーリストを管理可能とします。
417           </para>
418 @z
419
420 @x groupmod
421           <para>Is used to modify the given group's name or GID</para>
422 @y
423           <para>
424           指定されたグループの名前や GID を修正します。
425           </para>
426 @z
427
428 @x grpck
429           <para>Verifies the integrity of the group files
430           <filename>/etc/group</filename> and
431           <filename>/etc/gshadow</filename></para>
432 @y
433           <para>
434           グループファイル <filename>/etc/group</filename> と <filename>/etc/gshadow</filename> の整合性を確認します。
435           </para>
436 @z
437
438 @x grpconv
439           <para>Creates or updates the shadow group file from the normal
440           group file</para>
441 @y
442           <para>
443           通常のグループファイルから Shadow グループファイルを生成、更新します。
444           </para>
445 @z
446
447 @x grpunconv
448           <para>Updates <filename>/etc/group</filename> from
449           <filename>/etc/gshadow</filename> and then deletes the latter</para>
450 @y
451           <para>
452           <filename>/etc/gshadow</filename> ファイルを元に <filename>/etc/group</filename> ファイルを更新し <filename>/etc/gshadow</filename> ファイルを削除します。
453           </para>
454 @z
455
456 @x lastlog
457           <para>Reports the most recent login of all users or of a
458           given user</para>
459 @y
460           <para>
461           全ユーザーの中での最新ログインの情報、または指定ユーザーの最新ログインの情報を表示します。
462           </para>
463 @z
464
465 @x login
466           <para>Is used by the system to let users sign on</para>
467 @y
468           <para>
469           ユーザーのログインを行います。
470           </para>
471 @z
472
473 @x logoutd
474           <para>Is a daemon used to enforce restrictions on log-on time
475           and ports</para>
476 @y
477           <para>
478           ログオン時間とポートに対する制限を実施するためのデーモン。
479           </para>
480 @z
481
482 @x newgidmap
483           <para>Is used to set the gid mapping of a user namespace</para>
484 @y
485           <para>
486           ユーザー空間における gid マッピングを設定します。
487           </para>
488 @z
489
490 @x newgrp
491           <para>Is used to change the current GID during a login session</para>
492 @y
493           <para>
494           ログインセッション中に現在の GID を変更します。
495           </para>
496 @z
497
498 @x
499           <para>Is used to set the uid mapping of a user namespace</para>
500 @y
501           <para>
502           ユーザー空間における uid マッピングを設定します。
503           </para>
504 @z
505
506 @x newusers
507           <para>Is used to create or update an entire series of user
508           accounts</para>
509 @y
510           <!--
511           日本語訳註: 2009-08-30 matsuand
512           an entire series は何を意図しているのか
513           -->
514           <para>
515           複数ユーザーのアカウント情報を生成または更新します。
516           </para>
517 @z
518
519 @x nologin
520           <para>Displays a message that an account is not available; it is designed
521           to be used as the default shell for accounts that have been
522           disabled</para>
523 @y
524           <para>
525           ユーザーアカウントが利用不能であることをメッセージ表示します。
526           利用不能なユーザーアカウントに対するデフォルトシェルとして利用することを意図しています。
527           </para>
528 @z
529
530 @x passwd
531           <para>Is used to change the password for a user or group account</para>
532 @y
533           <para>
534           ユーザーアカウントまたはグループアカウントに対するパスワードを変更します。
535           </para>
536 @z
537
538 @x pwck
539           <para>Verifies the integrity of the password files
540           <filename>/etc/passwd</filename> and
541           <filename>/etc/shadow</filename></para>
542 @y
543           <para>
544           パスワードファイル <filename>/etc/passwd</filename> と <filename>/etc/shadow</filename> の整合性を確認します。
545           </para>
546 @z
547
548 @x pwconv
549           <para>Creates or updates the shadow password file from the normal
550           password file</para>
551 @y
552           <para>
553           通常のパスワードファイルを元に shadow パスワードファイルを生成、更新します。
554           </para>
555 @z
556
557 @x pwunconv
558           <para>Updates <filename>/etc/passwd</filename> from
559           <filename>/etc/shadow</filename> and then deletes the latter</para>
560 @y
561           <para>
562           <filename>/etc/shadow</filename> ファイルを元に <filename>/etc/passwd</filename> ファイルを更新し <filename>/etc/shadow</filename> を削除します。
563           </para>
564 @z
565
566 @x sg
567           <para>Executes a given command while the user's GID
568           is set to that of the given group</para>
569 @y
570           <para>
571           ユーザーの GID を指定されたグループにセットした上で、指定されたコマンドを実行します。
572           </para>
573 @z
574
575 @x su
576           <para>Runs a shell with substitute user and group IDs</para>
577 @y
578           <para>
579           ユーザー ID とグループ ID を変更してシェルを実行します。
580           </para>
581 @z
582
583 @x useradd
584           <para>Creates a new user with the given name, or updates the default
585           new-user information</para>
586 @y
587           <para>
588           指定した名前で新たなユーザーを生成します。
589           あるいは新規ユーザーのデフォルトの情報を更新します。
590           </para>
591 @z
592
593 @x userdel
594           <para>Deletes the given user account</para>
595 @y
596           <para>
597           指定されたユーザーアカウントを削除します。
598           </para>
599 @z
600
601 @x usermod
602           <para>Is used to modify the given user's login name, User
603           Identification (UID), shell, initial group, home directory, etc.</para>
604 @y
605           <para>
606           指定されたユーザーのログイン名、UID  (User Identification)、利用シェル、初期グループ、ホームディレクトリなどを変更します。
607           </para>
608 @z
609
610 @x vigr
611           <para>Edits the <filename>/etc/group</filename> or
612           <filename>/etc/gshadow</filename> files</para>
613 @y
614           <para>
615           <filename>/etc/group</filename> ファイルあるいは <filename>/etc/gshadow</filename> ファイルを編集します。
616           </para>
617 @z
618
619 @x vipw
620           <para>Edits the <filename>/etc/passwd</filename> or
621           <filename>/etc/shadow</filename> files</para>
622 @y
623           <para>
624           <filename>/etc/passwd</filename> ファイルあるいは <filename>/etc/shadow</filename> ファイルを編集します。
625           </para>
626 @z