Re: Can not delete file with correct permissions
Understood. Hmm, just tried mutt again and it can not delete files, telling
me, that "temporary files can not be written" in /var/mail.
So it looks more that the file and directory permissions are set correctly,
and that means -> I have to take a look at mutt.
Easiest way, just uninstall and reinstall, then check. If this does not work,
looking at permissions of mutt or similar.
I will tell more as soon as I know.
Best
Hans
>
> OK. The problem is you have some directory where users are
> supposed to be able to create a file, but to only remove
> *their* files, but not other's.
>
> This is a well-known problem (/tmp also has that problem), and
> UNIX-like file systems have something for that. This is called
> the "sticky bit" [1].
>
> And lo and behold, *my* /var/mail has this sticky bit:
> | tomas@trotzki:~$ ls -al /var/mail
> | total 220
> | drwxrwsr-x 2 root mail 4096 Feb 25 15:30 .
>
> ^ Here it is
>
> | drwxr-xr-x 13 root root 4096 Oct 30 2017 ..
> | -rw-rw---- 1 tomas mail 209515 Feb 25 15:30 tomas
>
> I don't know why yours has lost it. Unless there's a newfangled
> thing going on. One never knows, these days ;-)
>
> Cheers
> - t
Reply to: