Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Renaming not supported across conflicting directory permissions

I get the above error message from dovecot, if I try to rename a IMAP folder (with thunderbird)

Renaming not supported across conflicting directory permissions

if I try to rename "foo" to "foobar"

Here are the directories:

guettli@hz1:/var/spool/mail/guettli/familie/max$ ls -ld foo .
drwxr-sr-x 11 guettli guettli 4096 Nov  9 21:54 .
drwx--S---  5 guettli guettli 4096 Sep 12 20:42 foo

Which permissions are correct?

like image 303
guettli Avatar asked Nov 20 '13 09:11

guettli


3 Answers

The folder has to match its parent folder's permissions.

Strictly speaking the permissions refer to IMAP permissions, not unix, but I don't think the two are different in this case.

(Btw, I think this is actually a bug in the server. The code appears not to implement what the relevant comment describes. But change the folder's permissions to match those of its parents, and all will be well.)

like image 145
arnt Avatar answered Nov 02 '22 04:11

arnt


I had the same problem... changing the permissions in /var/mail/username (chmod go= /var/mail/username) fixed it. Apparently dovecot thinks it's smart to copy the permissions from there instead of the parent directory where it requires the permissions to be the same. And I could rename by the way, but not delete. So not sure if it's exactly the same problem.

like image 21
Peter Avatar answered Nov 02 '22 06:11

Peter


To clarify more: to be renamable a folder apparently needs to have the same permissions as its imap folder parent. For example, if you have a structure like: a folder called Animals and under that a folder called Cats. then on your mailserver your Maildir directory will include 2 directories: .Animals .Animals.Cats

both of those need to have the same permissions. Not necessarily the same as Maildir.

like image 43
steev Avatar answered Nov 02 '22 04:11

steev