chmod.2: Clarify terminology (file mode versus file permission bits)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-02-13 18:01:29 +01:00
parent 1bab84a885
commit 698ac0e263
1 changed files with 7 additions and 5 deletions

View File

@ -83,19 +83,21 @@ The
.BR chmod () .BR chmod ()
and and
.BR fchmod () .BR fchmod ()
system calls change the permissions of a file. system calls change a files mode bits.
They differ only in how the file is specified: (The file mode consists of the file permission bits plus the set-user-ID,
set-group-ID, and sticky bits.)
These system calls differ only in how the file is specified:
.IP * 2 .IP * 2
.BR chmod () .BR chmod ()
changes the permissions of the file specified whose pathname is given in changes the mode of the file specified whose pathname is given in
.IR pathname , .IR pathname ,
which is dereferenced if it is a symbolic link. which is dereferenced if it is a symbolic link.
.IP * .IP *
.BR fchmod () .BR fchmod ()
changes the permissions of the file referred to by the open file descriptor changes the mode of the file referred to by the open file descriptor
.IR fd . .IR fd .
.PP .PP
The new file permissions are specified in The new file mode is specified in
.IR mode , .IR mode ,
which is a bit mask created by ORing together zero or which is a bit mask created by ORing together zero or
more of the following: more of the following: