Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jul 2004 10:40:41 -0400
From:      David Magda <dmagda@ee.ryerson.ca>
To:        freebsd-stable@freebsd.org
Subject:   Re: permissions
Message-ID:  <6FA5C811-DD7F-11D8-8661-000A95B96FF8@ee.ryerson.ca>
In-Reply-To: <75790734.20040724133110@x3k6a2.net>
References:  <004201c47150$1726aef0$7c00a8c0@amiel> <75790734.20040724133110@x3k6a2.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jul 24, 2004, at 07:31, Sebastian Steenbuck wrote:

> Another way is to set the setuid bit. (chmod 4000)
>
> See chmod (1)
>
>>          4000    (the setuid bit).  Executable files with this bit 
>> set will
>>                  run with effective uid set to the uid of the file 
>> owner.
>>                  Directories with this bit set will force all files 
>> and sub-
>>                  directories created in them to be owned by the 
>> directory
>>                  owner and not by the uid of the creating process, if 
>> the
>>                  underlying file system supports this feature

Note that I don't think this is supported in the GENERIC kernel. I 
believe you have to add an option to the kernel configuration file and 
compile a new kernel. Go through NOTES/LINT and search for the string 
"SUID" or some such. (I don't remember details.)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6FA5C811-DD7F-11D8-8661-000A95B96FF8>