-   Linux - General (
-   -   Allow two users write access, but not delete (

jimieee 03-29-2005 07:54 AM

Allow two users write access, but not delete

Is it possible to give two users read/write access to a directory, but not the right to delete each other's files?



ahh 03-29-2005 08:04 AM

You can set the sticky bit for that directory.

e.g. chmod 1777 will allow anyone to read, write or execute, but only the file's owner, the directory's owner, and the superuser will be able to delete or rename it.

Haiyadragon 03-29-2005 08:09 AM

What's stopping an asshole user from writing an empty file? If nothing, then, what's the use?

oneandoneis2 03-29-2005 08:13 AM

If you don't trust the user, don't give them write access. If you give someone write-access, they can screw the file up. The two go hand-in-hand.

jimieee 03-29-2005 08:37 AM

Thanks :)

All times are GMT -5. The time now is 03:17 PM.