mirror of https://github.com/mkerrisk/man-pages
chown.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
1445a0ff3d
commit
1ec37705a4
20
man2/chown.2
20
man2/chown.2
|
@ -348,41 +348,41 @@ the options used to mount the filesystem,
|
|||
and whether or not the set-group-ID mode bit is enabled
|
||||
on the parent directory.
|
||||
If the filesystem supports the
|
||||
.I "\-o\ grpid"
|
||||
.B "\-o\ grpid"
|
||||
(or, synonymously
|
||||
.IR "\-o\ bsdgroups" )
|
||||
.BR "\-o\ bsdgroups" )
|
||||
and
|
||||
.I "\-o\ nogrpid"
|
||||
.B "\-o\ nogrpid"
|
||||
(or, synonymously
|
||||
.IR "\-o\ sysvgroups" )
|
||||
.BR "\-o\ sysvgroups" )
|
||||
.BR mount (8)
|
||||
options, then the rules are as follows:
|
||||
.IP * 2
|
||||
If the filesystem is mounted with
|
||||
.IR "\-o\ grpid" ,
|
||||
.BR "\-o\ grpid" ,
|
||||
then the group of a new file is made
|
||||
the same as that of the parent directory.
|
||||
.IP *
|
||||
If the filesystem is mounted with
|
||||
.IR "\-o\ nogrpid"
|
||||
.BR "\-o\ nogrpid"
|
||||
and the set-group-ID bit is disabled on the parent directory,
|
||||
then the group of a new file is made the same as the
|
||||
process's filesystem GID.
|
||||
.IP *
|
||||
If the filesystem is mounted with
|
||||
.IR "\-o\ nogrpid"
|
||||
.BR "\-o\ nogrpid"
|
||||
and the set-group-ID bit is enabled on the parent directory,
|
||||
then the group of a new file is made
|
||||
the same as that of the parent directory.
|
||||
.PP
|
||||
As at Linux 4.12,
|
||||
the
|
||||
.IR "\-o\ grpid"
|
||||
.BR "\-o\ grpid"
|
||||
and
|
||||
.IR "\-o\ nogrpid"
|
||||
.BR "\-o\ nogrpid"
|
||||
mount options are supported by ext2, ext3, ext4, and XFS.
|
||||
Filesystems that don't support these mount options follow the
|
||||
.IR "\-o\ nogrpid"
|
||||
.BR "\-o\ nogrpid"
|
||||
rules.
|
||||
.SS Glibc notes
|
||||
On older kernels where
|
||||
|
|
Loading…
Reference in New Issue