From fbfbde8feba2485b9d2759f36d8bbfff20757419 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 6 May 2017 13:42:46 +0200 Subject: [PATCH] chown.2: Changes to file owner by root also clear set-UID and set-GID bits Signed-off-by: Michael Kerrisk --- man2/chown.2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man2/chown.2 b/man2/chown.2 index 7e89f83ff..074b39aa1 100644 --- a/man2/chown.2 +++ b/man2/chown.2 @@ -131,7 +131,8 @@ mode bits are cleared. POSIX does not specify whether this also should happen when root does the .BR chown (); -the Linux behavior depends on the kernel version. +the Linux behavior depends on the kernel version, +and since Linux 2.2.13, root is treated like other users. .\" In Linux 2.0 kernels, superuser was like everyone else .\" In 2.2, up to 2.2.12, these bits were not cleared for superuser. .\" Since 2.2.13, superuser is once more like everyone else.