summaryrefslogtreecommitdiff
path: root/bin/chmod/chown.8
diff options
context:
space:
mode:
Diffstat (limited to 'bin/chmod/chown.8')
-rw-r--r--bin/chmod/chown.813
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/chmod/chown.8 b/bin/chmod/chown.8
index 79419ccb162..9c8cb909405 100644
--- a/bin/chmod/chown.8
+++ b/bin/chmod/chown.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: chown.8,v 1.6 2004/02/14 18:14:14 jmc Exp $
+.\" $OpenBSD: chown.8,v 1.7 2005/03/16 20:31:08 jmc Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -121,6 +121,17 @@ may be either a numeric group ID or a group name.
If a group name is also a numeric group ID, the operand is used as a
group name.
.Pp
+By default,
+.Nm
+clears the set-user-ID and set-group-ID bits on the file
+to prevent accidental or mischievous creation of
+set-user-ID and set-group-ID programs.
+This behaviour can be overridden by setting the
+.Xr sysctl 8
+variable
+.Va fs.posix.suid
+to zero.
+.Pp
Only the superuser is permitted to change the owner of a file.
.Pp
The