Date: Sat, 24 Jul 2004 13:31:10 +0200 From: Sebastian Steenbuck <me@x3k6a2.net> To: freebsd-stable@freebsd.org Subject: Re: permissions Message-ID: <75790734.20040724133110@x3k6a2.net> In-Reply-To: <004201c47150$1726aef0$7c00a8c0@amiel> References: <004201c47150$1726aef0$7c00a8c0@amiel>
next in thread | previous in thread | raw e-mail | index | archive | help
> How can I make a directory permission so that > the user can write but cannot delete a file inside the directory? 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 mfg Sebastian Steenbuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?75790734.20040724133110>