chown.2: When file owner or group is changed, file capabilities are cleared

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-05-06 13:47:27 +02:00
parent fbfbde8feb
commit b9472299a6
1 changed files with 4 additions and 0 deletions

View File

@ -142,6 +142,10 @@ bit is not set) the
.B S_ISGID
bit indicates mandatory locking, and is not cleared by a
.BR chown ().
When the owner or group of an executable file is changed (by any user),
all capability sets for the file are cleared.
.\"
.SS fchownat()
The
.BR fchownat ()