Date: Sat, 24 Jul 2004 09:41:28 +0200 From: Cyril Guibourg <plonk-o-matic@teaser.fr> To: freebsd-stable@freebsd.org Subject: Re: permissions Message-ID: <87zn5p26on.fsf@blackbox.babasse.net> In-Reply-To: <004201c47150$1726aef0$7c00a8c0@amiel> (Amiel Ong's message of "Sat, 24 Jul 2004 15:30:15 %2B0800") References: <004201c47150$1726aef0$7c00a8c0@amiel>
next in thread | previous in thread | raw e-mail | index | archive | help
"Amiel Ong" <amiel.ong@votek.com.ph> writes: > How can I make a directory permission so that > the user can write but cannot delete a file inside the directory? If your user shall *write* and *not* *create*, you can remove all his write permissions to that directory. This implies the file already exists. If he must be able to create a file this is more complicated, you will have to keep his write permissions at directory level, use the sticky bit and find a way to quickly change the file ownership once it is created. see chmod (2)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87zn5p26on.fsf>