[Dovecot] Undeserved permissions error with g+s folder permissions
I have a (mbox/IMAP) directory under my mail directory with these permissions:
drwxrws--- 4 tlhackque mail 4096 Dec 1 10:34 Vendors/
It contains a subdirectory:
-rw-rw---- 1 thlackque mail 84805345 Dec 1 10:34 Vendors/AVendor
If I try to rename the AVendor folder (client is Thunderbird 17.0), I get this error:
Unable to rename across conflicting directory permisssions
If I chmod g-s Vendors, the RENAME command succeeds.
I shouldn't have to do this...
Version and configuration information:
dovecot --version 2.1.10
# OS: Linux 2.6.22.14-72.fc6 i686 Fedora Core release 6 (Zod) first_valid_gid = 4000 first_valid_uid = 4000 hostname = example.net login_greeting = Dovecot ready. Unauthorized access is prohibited. mail_access_groups = mail mail_location = mbox:~/mail:INBOX=/var/mail/%n mail_privileged_group = mail namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = separator = / } passdb { driver = pam } plugin { autocreate = Trash autocreate2 = Train As Spam autocreate3 = Train As Ham autocreate4 = Train As Forgotten autosubscribe = Trash autosubscribe2 = Train As Spam autosubscribe3 = Train As Ham autosubscribe4 = Train As Forgotten } service imap-login { inet_listener imap { address = imap.v4.example.net imap.v6.example.net port = 143 } inet_listener imaps { address = imap.v4.example.net imap.v6.example.net port = 993 ssl = yes } } service pop3-login { inet_listener pop3 { address = pop.v4.example.net pop.v6.example.net port = 110 } inet_listener pop3s { address = pop.v4.example.net pop.v6.example.net port = 995 ssl = yes } } ssl_ca =
-- This communication may not represent my employer's views, if any, on the matters discussed.
On Sat, 2012-12-01 at 10:59 -0500, tlhackque wrote:
I have a (mbox/IMAP) directory under my mail directory with these permissions:
drwxrws--- 4 tlhackque mail 4096 Dec 1 10:34 Vendors/
It contains a subdirectory:
-rw-rw---- 1 thlackque mail 84805345 Dec 1 10:34 Vendors/AVendor
If I try to rename the AVendor folder (client is Thunderbird 17.0), I get this error:
Unable to rename across conflicting directory permisssions
If I chmod g-s Vendors, the RENAME command succeeds.
Where are you renaming it to and what permissions that directory has? I can't seem to easily reproduce this.
On 18-Dec-12 13:39, Timo Sirainen wrote:
On Sat, 2012-12-01 at 10:59 -0500, tlhackque wrote:
I have a (mbox/IMAP) directory under my mail directory with these permissions:
drwxrws--- 4 tlhackque mail 4096 Dec 1 10:34 Vendors/
It contains a subdirectory:
-rw-rw---- 1 thlackque mail 84805345 Dec 1 10:34 Vendors/AVendor
If I try to rename the AVendor folder (client is Thunderbird 17.0), I get this error:
Unable to rename across conflicting directory permisssions
If I chmod g-s Vendors, the RENAME command succeeds. Where are you renaming it to and what permissions that directory has? I can't seem to easily reproduce this.
Thanks for looking at this!
Here it is from the top with every step from creating the subfolder thru the fail to success without -s, reproduced today:
On the server, in my ~mail directory: | ||ls -ld Vendors drwxrws--- 4 tlhackque mail 4096 Dec 18 13:56 Vendors/ ls -ld Vendors/Test ls: Vendors/Test: No such file or directory
Right-click on Vendors in TB New Folder Test Subfolder of Vendors [Server restricts] x Messages only Create
ls -ld Vendors/Test -rw-rw---- 1 tlhackque mail 0 Dec 18 13:58 Vendors/Test
Right click on Test Rename Test Rename RENAME
Brief pop-up with this text; retrieved from the TB Activity manager window: The current command did not succeed. The mail server for account (tlhackque) responded: [CANNOT} Renaming not supported across conflicting directory permissions.
chmod g-s Vendors; ls -ld Vendors drwxrwx--- 4 tlhackque mail 4096 Dec 18 13:58 Vendors
Right click on Test Rename Test Rename RENAME
Succeeds | dovecot --version 2.1.10
Thunderbird 17.0
OS: cat /proc/sys/kernel/osrelease 2.6.22.14-72.fc6
SELinux is enabled, there are no errors in the log.
-- This communication may not represent my employer's views, if any, on the matters discussed.
On Tue, 2012-12-18 at 14:13 -0500, tlhackque wrote:
Unable to rename across conflicting directory permisssions
If I chmod g-s Vendors, the RENAME command succeeds.
Where are you renaming it to and what permissions that directory has? I can't seem to easily reproduce this.
Thanks for looking at this! .. dovecot --version 2.1.10
Looks like this was fixed in v2.1.11.
On 18-Dec-12 15:40, Timo Sirainen wrote:
On Tue, 2012-12-18 at 14:13 -0500, tlhackque wrote:
Unable to rename across conflicting directory permisssions
If I chmod g-s Vendors, the RENAME command succeeds.
Thanks for looking at this! .. dovecot --version 2.1.10 Looks like this was fixed in v2.1.11.
Got an upgrade window and confirmed that this is fixed in 2.1.12.
Thanks!
-- This communication may not represent my employer's views, if any, on the matters discussed.
Am 18.12.2012 19:39, schrieb Timo Sirainen:
On Sat, 2012-12-01 at 10:59 -0500, tlhackque wrote:
It contains a subdirectory:
-rw-rw---- 1 thlackque mail 84805345 Dec 1 10:34 Vendors/AVendor
If I try to rename the AVendor folder (client is Thunderbird 17.0), I get this error:
Unable to rename across conflicting directory permisssions
this is 660 which is simply wrong for a directrory in case of diretcories you need the excue flag means 770
participants (3)
-
Reindl Harald
-
Timo Sirainen
-
tlhackque