On Wed, Nov 11, 2009 at 00:30, Aristotelis <[email protected]> wrote:
> Nick Guenther wrote:
>
>>
>> Don't you want sticky(8)?
>
> According to the man page:
>
> A directory with the `sticky bit' set places restrictions on file dele-
> tion: a file in a sticky directory may only be removed or renamed by a
> user if the user has write permission for the directory and the user is
> the owner of the file, the owner of the directory, or the superuser.
>
>
> In my case the directory is owned by the user (who has write access since
he
> has to create the new files to store) so even with sticky bit I think it
> will be possible to remove the files.
> B Having the directory owned by another user and having a seperate user (in
> the same group probably) upload the files , again the upload user will have
> write permission in the directory, and he will own the files, as a result
he
> will be able to delete them.
>
> B Am i missing something??
>
> B Aristotelis
>
>
Couldn't you just have the directory owned by another person, but make
the owner and the user be part of the same group, and make the
directory group writable? The owner can delete, having the sticky
bit, but users in the group can put files in the directory, and they
can't delete them.