1 .\" Copyright Andries Brouwer, Ragnar Hojland Espinosa and A. Wik, 1998.
3 .\" Japanese Version Copyright (c) 1999 Kazuyuki Tanisako
4 .\" all rights reserved.
5 .\" Translated Wed May 9 01:41 JST 1999
6 .\" by Kazuyuki Tanisako
7 .\" Updated Thu Feb 1 10:49:13 JST 2001
8 .\" by Asakawa Satoshi <rod@i.am>
10 .\" This file may be copied under the conditions described
11 .\" in the LDP GENERAL PUBLIC LICENSE, Version 1, September 1998
12 .\" that should have been distributed together with this file.
14 .\"WORD: access permissions アクセス権
15 .\"WORD: permissions アクセス権
16 .\"WORD: options オプション
17 .\"WORD: symbolic mode シンボルモード
18 .\"WORD: numeric mode 数値モード
19 .\"WORD: octal number 8進数
20 .\"WORD: octal digit 8進数
22 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.5.1.2.
23 .TH CHMOD 1 "November 1998" "GNU fileutils 4.0" "FSF"
26 .\"O chmod \- change file access permissions
27 chmod \- ファイルのアクセス権を変更する
31 .\"O [\fIOPTION\fR]...\fI MODE\fR[\fI,MODE\fR]...\fI FILE\fR...
33 [\fIオプション\fR]...\fI MODE\fR[\fI,MODE\fR]...\fI FILE\fR...
36 .\"O [\fIOPTION\fR]...\fI OCTAL_MODE FILE\fR...
38 [\fIオプション\fR]...\fI OCTAL_MODE FILE\fR...
41 .\"O [\fIOPTION\fR]...\fI --reference=RFILE FILE\fR...
43 [\fIオプション\fR]...\fI --reference=RFILE FILE\fR...
48 .\"O documents the GNU version of
54 .\"O changes the permissions of each given file according to
56 .\"O which can be either a symbolic representation of changes to make, or
57 .\"O an octal number representing the bit pattern for the new permissions.
59 コマンドは指定したそれぞれのファイルのアクセス権を
61 に従って変更する。変更方法をシンボルで表現するか、もしくは変更後の
62 アクセス権を表すビットパターンを8進数で表現したもののいずれかを
65 .\"O The format of a symbolic mode is
66 .\"O `[ugoa...][[+-=][rwxXstugo...]...][,...]'. Multiple symbolic
67 .\"O operations can be given, separated by commas.
69 `[ugoa...][[+-=][rwxXstugo...]...][,...]'である。
70 コンマで区切ることによりシンボルモードを複数指定することができる。
72 .\"O A combination of the letters `ugoa' controls which users' access to
73 .\"O the file will be changed: the user who owns it (u), other users in the
74 .\"O file's group (g), other users not in the file's group (o), or all
75 .\"O users (a). If none of these are given, the effect is as if `a' were
76 .\"O given, but bits that are set in the umask are not affected.
77 文字`ugoa'の組合せにより、どのユーザのアクセス権を変更するかを決める:
79 ファイルと同じグループに属している所有者以外のユーザ
84 もしこれらのいずれも指定されない場合は、`a' が指定されたのと同じ結果となるが、
85 umaskに設定されたビット位置は変化しない。
87 .\"O The operator `+' causes the permissions selected to be added to the
88 .\"O existing permissions of each file; `-' causes them to be removed; and
89 .\"O `=' causes them to be the only permissions that the file has.
90 演算子`+'は各々のファイルの現状のアクセス権に選択したアクセス権を加える;
91 演算子`-'は選択したアクセス権を削除する;
92 そして演算子`=' は指定したアクセス権だけをそのファイルのアクセス権とする。
94 .\"O The letters `rwxXstugo' select the new permissions for the affected
95 .\"O users: read (r), write (w), execute (or access for directories) (x),
96 .\"O execute only if the file is a directory or already has execute
97 .\"O permission for some user (X), set user or group ID on execution (s),
98 .\"O save program text on swap device (t), the permissions that the user
99 .\"O who owns the file currently has for it (u), the permissions that other
100 .\"O users in the file's group have for it (g), and the permissions that
101 .\"O other users not in the file's group have for it (o).
102 文字 `rwxXstugo' は対象ユーザの新しいアクセス権を選択する:
105 実行許可(またはディレクトリに対するアクセス許可)(x)、
106 実行許可(但し、対象がディレクトリである場合か、
107 または、所有者/グループ/その他ユーザのいずれかにおいて、
108 既に実行許可が設定されていた場合のみ変更できる)(X)、
109 実行時にユーザIDまたはグループIDを設定する(s)、
110 プログラムコードをスワップデバイス上に保持する(t)、
113 変更前のその他ユーザアクセス権(o)、を表す。
114 (訳注: t(sticky bit)について。最近は、ディレクトリに設定されている場合、
115 ファイルの所有者とディレクトリの所有者だけが、
116 そのディレクトリからファイルを削除できることを意味する。
117 全ユーザが書き込みアクセス権を持つ /tmp のようなディレクトリで、
120 .\"O A numeric mode is from one to four octal digits (0-7), derived by
121 .\"O adding up the bits with values 4, 2, and 1. Any omitted digits are
122 .\"O assumed to be leading zeros. The first digit selects the set user ID
123 .\"O (4) and set group ID (2) and save text image (1) attributes. The
124 .\"O second digit selects permissions for the user who owns the file: read
125 .\"O (4), write (2), and execute (1); the third selects permissions for
126 .\"O other users in the file's group, with the same values; and the fourth
127 .\"O for other users not in the file's group, with the same values.
128 数値モードは1から4桁の8進数(0-7)で表される。
129 その数値は値4,2,1に対応するビットを加算することにより得られる。
131 最初の桁では、ユーザIDの設定(4)、グループIDの設定(2)、
132 sticky bit(1)といった属性を指定する。
133 2桁目では、ファイルの所有者のアクセス権を指定する: 読み取り(4)、
135 3桁目では、グループのアクセス権を指定する: 値は同じ意味を示す。
136 4桁目では、その他ユーザのアクセス権を指定する: 値は同じ意味を示す。
139 .\"O never changes the permissions of symbolic links; the
141 .\"O system call cannot change their permissions. This is not a problem
142 .\"O since the permissions of symbolic links are never used.
143 .\"O However, for each symbolic link listed on the command line,
145 .\"O changes the permissions of the pointed-to file.
148 .\"O ignores symbolic links encountered during recursive directory
151 システムコールがシンボリックリンクのアクセス権を変更できないため、
153 コマンドはシンボリックリンクのアクセス権を決して変更できない。
154 シンボリックリンクのアクセス権は決して使われることがないため、
158 コマンドは、引数にシンボリックリンクが指定された場合、
159 それが指しているファイルのアクセス権を変更する。
162 コマンドは、再帰的にディレクトリを移動しながら処理している時に見つけた
167 \fB\-c\fR, \fB\-\-changes\fR
168 .\"O like verbose but report only when a change is made
170 但し、実際にアクセス権が変更された場合のみ出力する。
172 \fB\-f\fR, \fB\-\-silent\fR, \fB\-\-quiet\fR
173 .\"O suppress most error messages
174 ほとんどのエラーメッセージの出力を抑える。
176 \fB\-v\fR, \fB\-\-verbose\fR
177 .\"O output a diagnostic for every file processed
178 全てのファイルに対して処理結果を詳細に出力する。
180 \fB\-\-reference\fR=\fIRFILE\fR
181 .\"O use RFILE's mode instead of MODE values
182 数値モードの代わりに指定したファイル(RFILE)のアクセス権を使う。
184 \fB\-R\fR, \fB\-\-recursive\fR
185 .\"O change files and directories recursively
186 ファイルやディレクトリのアクセス権を再帰的に変更する。
189 .\"O display this help and exit
193 .\"O output version information and exit
196 .\"O Each MODE is one or more of the letters ugoa, one of the symbols +-= and
197 .\"O one or more of the letters rwxXstugo.
198 それぞれのモードは、1文字又はそれ以上の`ugoa'のいずれかの文字の組合せで
199 ユーザアクセス権を表し、次に`+-='の演算子1文字によって変更動作を指定し、
200 最後に1文字又はそれ以上の`rwxXstugo'のいずれかの文字の組合せで
202 .\"O .SH "REPORTING BUGS"
204 .\"O Report bugs to <bug-fileutils@gnu.org>.
205 バグレポートは<bug-fileutils@gnu.org>へ。
208 .\"O The full documentation for
210 .\"O is maintained as a Texinfo manual. If the
214 .\"O programs are properly installed at your site, the command
218 .\"O should give you access to the complete manual.
220 の完全なドキュメントはinfoマニュアルとしてメンテナンスされている。
224 が正しくインストールされていれば、次のコマンド
228 で完全なマニュアルを参照することができる。