permissions

Cyril Guibourg plonk-o-matic at teaser.fr
Sat Jul 24 00:41:32 PDT 2004


"Amiel Ong" <amiel.ong at 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)


More information about the freebsd-stable mailing list