Allow two users write access, but not delete
Hi,
Is it possible to give two users read/write access to a directory, but not the right to delete each other's files? Thanks, James |
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. |
What's stopping an asshole user from writing an empty file? If nothing, then, what's the use?
|
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.
|
Thanks :)
|
All times are GMT -5. The time now is 05:13 AM. |