LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Allow two users write access, but not delete (http://www.linuxquestions.org/questions/linux-general-1/allow-two-users-write-access-but-not-delete-307346/)

jimieee 03-29-2005 07:54 AM

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

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 12:47 AM.