Subject: Re: kern/4662: chown(2) removes SUID/SGID bits
To: None <windsor@warthog.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: netbsd-bugs
Date: 12/10/1997 10:08:41
On Tue, 9 Dec 1997 21:50:11 -0600 (CST)
windsor@warthog.com wrote:
> >Synopsis: chown(2) removes SUID/SGID bits
>From chown(2):
chown(), lchown() and fchown() clear the set-user-id and set-group-id
bits on the file to prevent accidental or mischievous creation of set-us-
er-id and set-group-id programs.
This is a feature, not a bug.
Jason R. Thorpe thorpej@nas.nasa.gov
NASA Ames Research Center Home: +1 408 866 1912
NAS: M/S 258-6 Work: +1 650 604 0935
Moffett Field, CA 94035 Pager: +1 415 428 6939