OSDN Git Service

GNU_coreutils: Add ja.po and snapshot versions of translated pages.
[linuxjm/coreutils.git] / release / man1 / chmod.1
1 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.35.
2 .\"*******************************************************************
3 .\"
4 .\" This file was generated with po4a. Translate the source file.
5 .\"
6 .\"*******************************************************************
7 .TH CHMOD 1 "April 2010" "GNU coreutils 8.5" ユーザーコマンド
8 .SH 名前
9 chmod \- ファイルのモードビットを変更する
10 .SH 書式
11 \fBchmod\fP [\fIOPTION\fP]... \fIMODE\fP[\fI,MODE\fP]... \fIFILE\fP...
12 .br
13 \fBchmod\fP [\fIOPTION\fP]... \fIOCTAL\-MODE FILE\fP...
14 .br
15 \fBchmod\fP [\fIOPTION\fP]... \fI\-\-reference=RFILE FILE\fP...
16 .SH 説明
17 This manual page documents the GNU version of \fBchmod\fP.  \fBchmod\fP changes
18 the file mode bits of each given file according to \fImode\fP, which can be
19 either a symbolic representation of changes to make, or an octal number
20 representing the bit pattern for the new mode bits.
21 .PP
22 The format of a symbolic mode is
23 [\fBugoa\fP.\|.\|.][[\fB+\-=\fP][\fIperms\fP.\|.\|.].\|.\|.], where \fIperms\fP is either
24 zero or more letters from the set \fBrwxXst\fP, or a single letter from the set
25 \fBugo\fP.  Multiple symbolic modes can be given, separated by commas.
26 .PP
27 A combination of the letters \fBugoa\fP controls which users' access to the
28 file will be changed: the user who owns it (\fBu\fP), other users in the file's
29 group (\fBg\fP), other users not in the file's group (\fBo\fP), or all users
30 (\fBa\fP).  If none of these are given, the effect is as if \fBa\fP were given,
31 but bits that are set in the umask are not affected.
32 .PP
33 The operator \fB+\fP causes the selected file mode bits to be added to the
34 existing file mode bits of each file; \fB\-\fP causes them to be removed; and
35 \fB=\fP causes them to be added and causes unmentioned bits to be removed
36 except that a directory's unmentioned set user and group ID bits are not
37 affected.
38 .PP
39 The letters \fBrwxXst\fP select file mode bits for the affected users: read
40 (\fBr\fP), write (\fBw\fP), execute (or search for directories)  (\fBx\fP),
41 execute/search only if the file is a directory or already has execute
42 permission for some user (\fBX\fP), set user or group ID on execution (\fBs\fP),
43 restricted deletion flag or sticky bit (\fBt\fP).  Instead of one or more of
44 these letters, you can specify exactly one of the letters \fBugo\fP: the
45 permissions granted to the user who owns the file (\fBu\fP), the permissions
46 granted to other users who are members of the file's group (\fBg\fP), and the
47 permissions granted to users that are in neither of the two preceding
48 categories (\fBo\fP).
49 .PP
50 A numeric mode is from one to four octal digits (0\-7), derived by adding up
51 the bits with values 4, 2, and 1.  Omitted digits are assumed to be leading
52 zeros.  The first digit selects the set user ID (4) and set group ID (2) and
53 restricted deletion or sticky (1) attributes.  The second digit selects
54 permissions for the user who owns the file: read (4), write (2), and execute
55 (1); the third selects permissions for other users in the file's group, with
56 the same values; and the fourth for other users not in the file's group,
57 with the same values.
58 .PP
59 \fBchmod\fP never changes the permissions of symbolic links; the \fBchmod\fP
60 system call cannot change their permissions.  This is not a problem since
61 the permissions of symbolic links are never used.  However, for each
62 symbolic link listed on the command line, \fBchmod\fP changes the permissions
63 of the pointed\-to file.  In contrast, \fBchmod\fP ignores symbolic links
64 encountered during recursive directory traversals.
65 .SH "SETUID AND SETGID BITS"
66 \fBchmod\fP clears the set\-group\-ID bit of a regular file if the file's group
67 ID does not match the user's effective group ID or one of the user's
68 supplementary group IDs, unless the user has appropriate privileges.
69 Additional restrictions may cause the set\-user\-ID and set\-group\-ID bits of
70 \fIMODE\fP or \fIRFILE\fP to be ignored.  This behavior depends on the policy and
71 functionality of the underlying \fBchmod\fP system call.  When in doubt, check
72 the underlying system behavior.
73 .PP
74 \fBchmod\fP preserves a directory's set\-user\-ID and set\-group\-ID bits unless
75 you explicitly specify otherwise.  You can set or clear the bits with
76 symbolic modes like \fBu+s\fP and \fBg\-s\fP, and you can set (but not clear) the
77 bits with a numeric mode.
78 .SH "RESTRICTED DELETION FLAG OR STICKY BIT"
79 The restricted deletion flag or sticky bit is a single bit, whose
80 interpretation depends on the file type.  For directories, it prevents
81 unprivileged users from removing or renaming a file in the directory unless
82 they own the file or the directory; this is called the \fIrestricted deletion
83 flag\fP for the directory, and is commonly found on world\-writable directories
84 like \fB/tmp\fP.  For regular files on some older systems, the bit saves the
85 program's text image on the swap device so it will load more quickly when
86 run; this is called the \fIsticky bit\fP.
87 .SH オプション
88 .PP
89 Change the mode of each FILE to MODE.
90 .TP 
91 \fB\-c\fP, \fB\-\-changes\fP
92 verbose モードと同様だが、変更が行われた場合にのみ出力する。
93 .TP 
94 \fB\-\-no\-preserve\-root\fP
95 do not treat `/' specially (the default)
96 .TP 
97 \fB\-\-preserve\-root\fP
98 fail to operate recursively on `/'
99 .TP 
100 \fB\-f\fP, \fB\-\-silent\fP, \fB\-\-quiet\fP
101 suppress most error messages
102 .TP 
103 \fB\-v\fP, \fB\-\-verbose\fP
104 処理した各ファイルについて診断メッセージを出力する。
105 .TP 
106 \fB\-\-reference\fP=\fIRFILE\fP
107 use RFILE's mode instead of MODE values
108 .TP 
109 \fB\-R\fP, \fB\-\-recursive\fP
110 change files and directories recursively
111 .TP 
112 \fB\-\-help\fP
113 この使い方を表示して終了する
114 .TP 
115 \fB\-\-version\fP
116 バージョン情報を表示して終了する
117 .PP
118 Each MODE is of the form `[ugoa]*([\-+=]([rwxXst]*|[ugo]))+'.
119 .SH 作者
120 David MacKenzie と Jim Meyering が作成した。
121 .SH バグ報告
122 chmod のバグは bug\-coreutils@gnu.org に報告してください。
123 .br
124 GNU coreutils のホームページは <http://www.gnu.org/software/coreutils/> です。
125 .br
126 GNU ソフトウェアを使用するための一般的なヘルプ <http://www.gnu.org/gethelp/> にある。
127 .br
128 chmod の翻訳のバグは <http://translationproject.org/team/> に報告してください。
129 .SH 著作権
130 Copyright \(co 2010 Free Software Foundation, Inc.  License GPLv3+: GNU GPL
131 version 3 or later <http://gnu.org/licenses/gpl.html>.
132 .br
133 This is free software: you are free to change and redistribute it.  There is
134 NO WARRANTY, to the extent permitted by law.
135 .SH 関連項目
136 chmod(2)
137 .PP
138 \fBchmod\fP の完全なマニュアルは Texinfo マニュアルとして用意されている。
139 \fBinfo\fP と \fBchmod\fP のプログラムがお使いの環境に適切にインストールされているならば、
140 コマンド
141 .IP
142 \fBinfo coreutils \(aqchmod invocation\(aq\fP
143 .PP
144 を実行すると、完全なマニュアルを読むことができるはずである。