OSDN Git Service

Convert release and draft pages to UTF-8.
[linuxjm/jm.git] / manual / GNU_fileutils / draft / man1 / chmod.1
1 .\" Copyright Andries Brouwer, Ragnar Hojland Espinosa and A. Wik, 1998.
2 .\"
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>
9 .\"
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.
13 .\"
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進数
21 .\"
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"
24 .\"O .SH NAME
25 .SH 名前
26 .\"O chmod \- change file access permissions
27 chmod \- ファイルのアクセス権を変更する
28 .\"O .SH SYNOPSIS
29 .SH 書式
30 .\"O .B chmod
31 .\"O [\fIOPTION\fR]...\fI MODE\fR[\fI,MODE\fR]...\fI FILE\fR...
32 .B chmod
33 [\fIオプション\fR]...\fI MODE\fR[\fI,MODE\fR]...\fI FILE\fR...
34 .br
35 .\"O .B chmod
36 .\"O [\fIOPTION\fR]...\fI OCTAL_MODE FILE\fR...
37 .B chmod
38 [\fIオプション\fR]...\fI OCTAL_MODE FILE\fR...
39 .br
40 .\"O .B chmod
41 .\"O [\fIOPTION\fR]...\fI --reference=RFILE FILE\fR...
42 .B chmod
43 [\fIオプション\fR]...\fI --reference=RFILE FILE\fR...
44 .\"O .SH DESCRIPTION
45 .SH 説明
46 .PP
47 .\"O This manual page
48 .\"O documents the GNU version of
49 .\"O .BR chmod .
50 このマニュアルはGNU版
51 .BR chmod
52 コマンドについて記述したものである。
53 .\"O .B chmod
54 .\"O changes the permissions of each given file according to
55 .\"O .IR mode ,
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.
58 .B chmod
59 コマンドは指定したそれぞれのファイルのアクセス権を
60 .IR mode
61 に従って変更する。変更方法をシンボルで表現するか、もしくは変更後の
62 アクセス権を表すビットパターンを8進数で表現したもののいずれかを
63 使うことができる。
64 .PP
65 .\"O The format of a symbolic mode is
66 .\"O `[ugoa...][[+-=][rwxXstugo...]...][,...]'.  Multiple symbolic
67 .\"O operations can be given, separated by commas.
68 シンボルモードの書式は
69 `[ugoa...][[+-=][rwxXstugo...]...][,...]'である。
70 コンマで区切ることによりシンボルモードを複数指定することができる。
71 .PP
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'の組合せにより、どのユーザのアクセス権を変更するかを決める:
78 それぞれの文字は、ファイルの所有者(u)、
79 ファイルと同じグループに属している所有者以外のユーザ
80 (訳注: 以後グループと表記)(g)、
81 ファイルと同じグループに属していないユーザ
82 (訳注: 以後その他ユーザと表記)(o)、
83 もしくは全ユーザ(a) を表している。
84 もしこれらのいずれも指定されない場合は、`a' が指定されたのと同じ結果となるが、
85 umaskに設定されたビット位置は変化しない。
86 .PP
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 そして演算子`=' は指定したアクセス権だけをそのファイルのアクセス権とする。
93 .PP
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' は対象ユーザの新しいアクセス権を選択する: 
103 それぞれの文字は、読み取り許可(r)、
104 書き込み許可(w)、
105 実行許可(またはディレクトリに対するアクセス許可)(x)、
106 実行許可(但し、対象がディレクトリである場合か、
107 または、所有者/グループ/その他ユーザのいずれかにおいて、
108 既に実行許可が設定されていた場合のみ変更できる)(X)、
109 実行時にユーザIDまたはグループIDを設定する(s)、
110 プログラムコードをスワップデバイス上に保持する(t)、
111 変更前の所有者アクセス権(u)、
112 変更前のグループアクセス権(g)、
113 変更前のその他ユーザアクセス権(o)、を表す。
114 (訳注: t(sticky bit)について。最近は、ディレクトリに設定されている場合、
115 ファイルの所有者とディレクトリの所有者だけが、
116 そのディレクトリからファイルを削除できることを意味する。
117 全ユーザが書き込みアクセス権を持つ /tmp のようなディレクトリで、
118 これはごく普通に使われている。)
119 .PP
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に対応するビットを加算することにより得られる。
130 省略された桁は0と見做される。
131 最初の桁では、ユーザIDの設定(4)、グループIDの設定(2)、
132 sticky bit(1)といった属性を指定する。
133 2桁目では、ファイルの所有者のアクセス権を指定する: 読み取り(4)、
134 書き込み(2)、実行(1)を示す。
135 3桁目では、グループのアクセス権を指定する: 値は同じ意味を示す。
136 4桁目では、その他ユーザのアクセス権を指定する: 値は同じ意味を示す。
137 .PP
138 .\"O .B chmod
139 .\"O never changes the permissions of symbolic links; the
140 .\"O .B chmod
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,
144 .\"O .B chmod
145 .\"O changes the permissions of the pointed-to file.
146 .\"O In contrast,
147 .\"O .B chmod
148 .\"O ignores symbolic links encountered during recursive directory
149 .\"O traversals.
150 .B chmod
151 システムコールがシンボリックリンクのアクセス権を変更できないため、
152 .B chmod
153 コマンドはシンボリックリンクのアクセス権を決して変更できない。
154 シンボリックリンクのアクセス権は決して使われることがないため、
155 このことは問題ではない。
156 しかし、
157 .B chmod
158 コマンドは、引数にシンボリックリンクが指定された場合、
159 それが指しているファイルのアクセス権を変更する。
160 それに対して、
161 .B chmod
162 コマンドは、再帰的にディレクトリを移動しながら処理している時に見つけた
163 シンボリックリンクは無視する。
164 .\"O .SH OPTIONS
165 .SH オプション
166 .TP
167 \fB\-c\fR, \fB\-\-changes\fR
168 .\"O like verbose but report only when a change is made
169 \-verboseと同じ。
170 但し、実際にアクセス権が変更された場合のみ出力する。
171 .TP
172 \fB\-f\fR, \fB\-\-silent\fR, \fB\-\-quiet\fR
173 .\"O suppress most error messages
174 ほとんどのエラーメッセージの出力を抑える。
175 .TP
176 \fB\-v\fR, \fB\-\-verbose\fR
177 .\"O output a diagnostic for every file processed
178 全てのファイルに対して処理結果を詳細に出力する。
179 .TP
180 \fB\-\-reference\fR=\fIRFILE\fR
181 .\"O use RFILE's mode instead of MODE values
182 数値モードの代わりに指定したファイル(RFILE)のアクセス権を使う。
183 .TP
184 \fB\-R\fR, \fB\-\-recursive\fR
185 .\"O change files and directories recursively
186 ファイルやディレクトリのアクセス権を再帰的に変更する。
187 .TP
188 \fB\-\-help\fR
189 .\"O display this help and exit
190 使用方法を表示して正常終了する。
191 .TP
192 \fB\-\-version\fR
193 .\"O output version information and exit
194 バージョン情報を出力して正常終了する。
195 .PP
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'のいずれかの文字の組合せで
201 変更する属性を指定する。
202 .\"O .SH "REPORTING BUGS"
203 .SH "バグレポート"
204 .\"O Report bugs to <bug-fileutils@gnu.org>.
205 バグレポートは<bug-fileutils@gnu.org>へ。
206 .\"O .SH "SEE ALSO"
207 .SH "関連項目"
208 .\"O The full documentation for
209 .\"O .B chmod
210 .\"O is maintained as a Texinfo manual.  If the
211 .\"O .B info
212 .\"O and
213 .\"O .B chmod
214 .\"O programs are properly installed at your site, the command
215 .\"O .IP
216 .\"O .B info chmod
217 .\"O .PP
218 .\"O should give you access to the complete manual.
219 .B chmod
220 の完全なドキュメントはinfoマニュアルとしてメンテナンスされている。
221 .B info
222
223 .B chmod
224 が正しくインストールされていれば、次のコマンド
225 .IP
226 .B info chmod
227 .PP
228 で完全なマニュアルを参照することができる。
229
230