#, fuzzy msgid "" msgstr "" "Project-Id-Version: man-pages-l10n VERSION\n" "POT-Creation-Date: 2014-07-17 17:53+0900\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: man-pages/man2/chmod.2:32 #, no-wrap msgid "CHMOD" msgstr "" #. type: TH #: man-pages/man2/chmod.2:32 #, no-wrap msgid "2014-02-21" msgstr "" #. type: TH #: man-pages/man2/chmod.2:32 #, no-wrap msgid "Linux" msgstr "" #. type: TH #: man-pages/man2/chmod.2:32 #, no-wrap msgid "Linux Programmer's Manual" msgstr "" #. type: SH #: man-pages/man2/chmod.2:33 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:35 msgid "chmod, fchmod, fchmodat - change permissions of a file" msgstr "" #. type: SH #: man-pages/man2/chmod.2:35 #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:38 #, no-wrap msgid "B<#include Esys/stat.hE>\n" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:40 #, no-wrap msgid "BIB<, mode_t >IB<);>\n" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:42 #, no-wrap msgid "BIB<, mode_t >IB<);>\n" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:45 #, no-wrap msgid "" "B<#include Efcntl.hE> /* Definition of AT_* constants */\n" "B<#include Esys/stat.hE>\n" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:48 #, no-wrap msgid "" "BIB<, const char *>IB<, mode_t " ">IB<, int >IB<);>\n" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:53 msgid "" "Feature Test Macro Requirements for glibc (see B(7)):" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:58 msgid "B():" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:62 msgid "" "_BSD_SOURCE || _XOPEN_SOURCE\\ E=\\ 500 || _XOPEN_SOURCE\\ &&\\ " "_XOPEN_SOURCE_EXTENDED" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:64 msgid "|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\\ E=\\ 200809L" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:68 msgid "B():" msgstr "" #. type: TP #: man-pages/man2/chmod.2:71 #, no-wrap msgid "Since glibc 2.10:" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:74 msgid "_XOPEN_SOURCE\\ E=\\ 700 || _POSIX_C_SOURCE\\ E=\\ 200809L" msgstr "" #. type: TP #: man-pages/man2/chmod.2:74 #, no-wrap msgid "Before glibc 2.10:" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:77 msgid "_ATFILE_SOURCE" msgstr "" #. type: SH #: man-pages/man2/chmod.2:81 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:88 msgid "" "The B() and B() system calls change the permissions of a " "file. They differ only in how the file is specified:" msgstr "" #. type: IP #: man-pages/man2/chmod.2:88 man-pages/man2/chmod.2:93 #, no-wrap msgid "*" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:93 msgid "" "B() changes the permissions of the file specified whose pathname is " "given in I, which is dereferenced if it is a symbolic link." msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:97 msgid "" "B() changes the permissions of the file referred to by the open " "file descriptor I." msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:102 msgid "" "The new file permissions are specified in I, which is a bit mask " "created by ORing together zero or more of the following:" msgstr "" #. type: TP #: man-pages/man2/chmod.2:102 #, no-wrap msgid "B (04000)" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:106 msgid "set-user-ID (set process effective user ID on B(2))" msgstr "" #. type: TP #: man-pages/man2/chmod.2:106 #, no-wrap msgid "B (02000)" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:116 msgid "" "set-group-ID (set process effective group ID on B(2); mandatory " "locking, as described in B(2); take a new file's group from parent " "directory, as described in B(2) and B(2))" msgstr "" #. type: TP #: man-pages/man2/chmod.2:116 #, no-wrap msgid "B (01000)" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:120 msgid "sticky bit (restricted deletion flag, as described in B(2))" msgstr "" #. type: TP #: man-pages/man2/chmod.2:120 #, no-wrap msgid "B (00400)" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:123 msgid "read by owner" msgstr "" #. type: TP #: man-pages/man2/chmod.2:123 #, no-wrap msgid "B (00200)" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:126 msgid "write by owner" msgstr "" #. type: TP #: man-pages/man2/chmod.2:126 #, no-wrap msgid "B (00100)" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:130 msgid "" "execute/search by owner (\"search\" applies for directories, and means that " "entries within the directory can be accessed)" msgstr "" #. type: TP #: man-pages/man2/chmod.2:130 #, no-wrap msgid "B (00040)" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:133 msgid "read by group" msgstr "" #. type: TP #: man-pages/man2/chmod.2:133 #, no-wrap msgid "B (00020)" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:136 msgid "write by group" msgstr "" #. type: TP #: man-pages/man2/chmod.2:136 #, no-wrap msgid "B (00010)" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:139 msgid "execute/search by group" msgstr "" #. type: TP #: man-pages/man2/chmod.2:139 #, no-wrap msgid "B (00004)" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:142 msgid "read by others" msgstr "" #. type: TP #: man-pages/man2/chmod.2:142 #, no-wrap msgid "B (00002)" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:145 msgid "write by others" msgstr "" #. type: TP #: man-pages/man2/chmod.2:145 #, no-wrap msgid "B (00001)" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:148 msgid "execute/search by others" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:153 msgid "" "The effective UID of the calling process must match the owner of the file, " "or the process must be privileged (Linux: it must have the B " "capability)." msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:162 msgid "" "If the calling process is not privileged (Linux: does not have the " "B capability), and the group of the file does not match the " "effective group ID of the process or one of its supplementary group IDs, the " "B bit will be turned off, but this will not cause an error to be " "returned." msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:174 msgid "" "As a security measure, depending on the filesystem, the set-user-ID and set-" "group-ID execution bits may be turned off if a file is written. (On Linux " "this occurs if the writing process does not have the B " "capability.) On some filesystems, only the superuser can set the sticky " "bit, which may have a special meaning. For the sticky bit, and for set-user-" "ID and set-group-ID bits on directories, see B(2)." msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:182 msgid "" "On NFS filesystems, restricting the permissions will immediately influence " "already open files, because the access control is done on the server, but " "open files are maintained by the client. Widening the permissions may be " "delayed for other clients if attribute caching is enabled on them." msgstr "" #. type: SS #: man-pages/man2/chmod.2:182 #, no-wrap msgid "fchmodat()" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:188 msgid "" "The B() system call operates in exactly the same way as " "B(), except for the differences described here." msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:198 msgid "" "If the pathname given in I is relative, then it is interpreted " "relative to the directory referred to by the file descriptor I " "(rather than relative to the current working directory of the calling " "process, as is done by B() for a relative pathname)." msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:210 msgid "" "If I is relative and I is the special value B, " "then I is interpreted relative to the current working directory of " "the calling process (like B())." msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:216 msgid "If I is absolute, then I is ignored." msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:219 msgid "I can either be 0, or include the following flag:" msgstr "" #. type: TP #: man-pages/man2/chmod.2:219 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:226 msgid "" "If I is a symbolic link, do not dereference it: instead operate on " "the link itself. This flag is not currently implemented." msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:231 msgid "See B(2) for an explanation of the need for B()." msgstr "" #. type: SH #: man-pages/man2/chmod.2:231 #, no-wrap msgid "RETURN VALUE" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:236 msgid "" "On success, zero is returned. On error, -1 is returned, and I is set " "appropriately." msgstr "" #. type: SH #: man-pages/man2/chmod.2:236 #, no-wrap msgid "ERRORS" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:239 msgid "" "Depending on the filesystem, errors other than those listed below can be " "returned." msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:243 msgid "The more general errors for B() are listed below:" msgstr "" #. type: TP #: man-pages/man2/chmod.2:243 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:248 msgid "" "Search permission is denied on a component of the path prefix. (See also " "B(7).)" msgstr "" #. type: TP #: man-pages/man2/chmod.2:248 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:252 msgid "I points outside your accessible address space." msgstr "" #. type: TP #: man-pages/man2/chmod.2:252 man-pages/man2/chmod.2:290 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:255 msgid "An I/O error occurred." msgstr "" #. type: TP #: man-pages/man2/chmod.2:255 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:259 msgid "Too many symbolic links were encountered in resolving I." msgstr "" #. type: TP #: man-pages/man2/chmod.2:259 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:263 msgid "I is too long." msgstr "" #. type: TP #: man-pages/man2/chmod.2:263 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:266 msgid "The file does not exist." msgstr "" #. type: TP #: man-pages/man2/chmod.2:266 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:269 msgid "Insufficient kernel memory was available." msgstr "" #. type: TP #: man-pages/man2/chmod.2:269 man-pages/man2/chmod.2:314 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:272 msgid "A component of the path prefix is not a directory." msgstr "" #. type: TP #: man-pages/man2/chmod.2:272 man-pages/man2/chmod.2:293 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:278 msgid "" "The effective UID does not match the owner of the file, and the process is " "not privileged (Linux: it does not have the B capability)." msgstr "" #. type: TP #: man-pages/man2/chmod.2:278 man-pages/man2/chmod.2:296 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:281 msgid "The named file resides on a read-only filesystem." msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:285 msgid "The general errors for B() are listed below:" msgstr "" #. type: TP #: man-pages/man2/chmod.2:285 man-pages/man2/chmod.2:306 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:290 msgid "The file descriptor I is not valid." msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:293 man-pages/man2/chmod.2:296 man-pages/man2/chmod.2:299 msgid "See above." msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:306 msgid "" "The same errors that occur for B() can also occur for B(). " " The following additional errors can occur for B():" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:310 msgid "I is not a valid file descriptor." msgstr "" #. type: TP #: man-pages/man2/chmod.2:310 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:314 msgid "Invalid flag specified in I." msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:320 msgid "" "I is relative and I is a file descriptor referring to a " "file other than a directory." msgstr "" #. type: TP #: man-pages/man2/chmod.2:320 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:326 msgid "I specified B, which is not supported." msgstr "" #. type: SH #: man-pages/man2/chmod.2:326 #, no-wrap msgid "VERSIONS" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:330 msgid "" "B() was added to Linux in kernel 2.6.16; library support was " "added to glibc in version 2.4." msgstr "" #. type: SH #: man-pages/man2/chmod.2:330 #, no-wrap msgid "CONFORMING TO" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:334 msgid "B(), B(): 4.4BSD, SVr4, POSIX.1-2001i, POSIX.1-2008." msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:337 msgid "B(): POSIX.1-2008." msgstr "" #. type: SH #: man-pages/man2/chmod.2:337 #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:347 msgid "" "The GNU C library B() wrapper function implements the POSIX-" "specified interface described in this page. This interface differs from the " "underlying Linux system call, which does I have a I argument." msgstr "" #. type: SH #: man-pages/man2/chmod.2:347 #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:354 msgid "" "B(2), B(2), B(2), B(2), B(7), " "B(7)" msgstr "" #. type: SH #: man-pages/man2/chmod.2:354 #, no-wrap msgid "COLOPHON" msgstr "" #. type: Plain text #: man-pages/man2/chmod.2:362 msgid "" "This page is part of release 3.70 of the Linux I project. A " "description of the project, information about reporting bugs, and the latest " "version of this page, can be found at \\%http://www.kernel.org/doc/man-pages/" "." msgstr ""