[Dovecot] Shared folder doesn't work!
I can't seem to get a shared folder working properly. I am authenticating using pam, and the users have a shell account on the system. Problem is, the permissions on the messages moved into the folder don't maintain properly, and other users can't read the share.
I have the following in /etc/dovecot/dovecot.conf
namespace public { separator = / prefix = Public/ location = maildir:/var/mail/public }
# If you create a "namespace public" section, then you need to create # a "namespace private" section namespace private { separator = / prefix = location = maildir:/home/%u/Maildir # There can be only one INBOX, and this setting defines # which namespace has it. inbox = yes }
umask = 0007
I am running rc15 from backports on Debian stable.
dovecot (1.0.rc15-1~bpo1) sarge-backports; urgency=low
- Rebuilt for sarge.
- Only changes needed were build dependency on libpq-dev changed back to postgresql-dev, libmysqlclient15-dev changed back to libmysqlclient12-dev, kernel-headers versioned build-dependency removed and debhelper version relaxed to 4.
-- Jaldhar H. Vyas jaldhar@debian.org Mon, 4 Dec 2006 00:48:28 -0500
And here is the share. Two users are accessing it: brian and fred which are both in the colab group. See how the one message doesn't have group read or write.
# cd /var/mail # find public -ls 232465 1 drwxrws--- 6 fred colab 1024 Jan 16 00:50 public/ 232466 1 drwxrws--- 2 fred colab 1024 Jan 16 00:13 public/cur 232467 1 drwxrws--- 2 fred colab 1024 Jan 16 00:13 public/new 232468 1 drwxrws--- 2 fred colab 1024 Jan 16 00:13 public/tmp 228051 1 drwxrws--- 5 fred colab 1024 Jan 16 04:32 public/.notices 228100 1 drwxrws--- 2 fred colab 1024 Jan 16 04:30 public/.notices/cur 228104 1 -rw-rw---- 1 fred colab 477 Jan 15 23:05 public/.notices/cur/1168937439.P1214Q0M467971.debian:2,S 228262 1 -rw-rw---- 1 brian colab 812 Jan 15 22:58 public/.notices/cur/1168949589.P1006Q0M317215.debian:2,S 228105 1 -rw-rw---- 1 fred colab 819 Jan 15 21:22 public/.notices/cur/1168950176.P1101Q0M673976.debian:2,S 228263 1 -rw------- 1 fred colab 620 Jan 15 22:57 public/.notices/cur/1168950649.P1171Q0M862818.debian:2,RS 228101 1 drwxrws--- 2 fred colab 1024 Jan 16 00:20 public/.notices/new 228102 1 drwxrws--- 2 fred colab 1024 Jan 16 04:30 public/.notices/tmp 228103 1 -rw-rwx--- 1 fred colab 636 Jan 16 04:30 public/.notices/dovecot.index.log 228266 0 -rw------- 1 brian colab 0 Jan 16 04:32 public/.notices/dovecot-uidlist.lock 228107 1 -rw-rwx--- 1 fred colab 192 Jan 16 04:30 public/.notices/dovecot.index 228106 17 -rw-rwx--- 1 fred colab 16384 Jan 16 04:30 public/.notices/dovecot.index.cache 228265 1 -rw------- 1 fred colab 172 Jan 16 04:30 public/.notices/dovecot-uidlist 232470 1 -rw-rw---- 1 fred colab 8 Jan 16 00:50 public/subscriptions
Brian Lavender http://www.brie.com/brian/
Brian Lavender wrote:
I can't seem to get a shared folder working properly. I am authenticating using pam, and the users have a shell account on the system. Problem is, the permissions on the messages moved into the folder don't maintain properly, and other users can't read the share.
Did you make a dovecot-shared file?
http://wiki.dovecot.org/SharedFolders
Mark
On Wed, Jan 17, 2007 at 03:40:14PM -0800, Mark Nienberg wrote:
Brian Lavender wrote:
I can't seem to get a shared folder working properly. I am authenticating using pam, and the users have a shell account on the system. Problem is, the permissions on the messages moved into the folder don't maintain properly, and other users can't read the share.
Did you make a dovecot-shared file?
No, I didn't create that file. Do I just touch the file and change it to the colab group? The users accessing this folder are in the colab group.
# cd /var/mail/public/.notices # touch dovecot-shared # chgrp colab dovecot-shared
brian
Brian Lavender http://www.brie.com/brian/
On Thu, 2007-01-18 at 11:15 -0800, Brian Lavender wrote:
On Wed, Jan 17, 2007 at 03:40:14PM -0800, Mark Nienberg wrote:
Brian Lavender wrote:
I can't seem to get a shared folder working properly. I am authenticating using pam, and the users have a shell account on the system. Problem is, the permissions on the messages moved into the folder don't maintain properly, and other users can't read the share.
Did you make a dovecot-shared file?
No, I didn't create that file. Do I just touch the file and change it to the colab group? The users accessing this folder are in the colab group.
# cd /var/mail/public/.notices # touch dovecot-shared # chgrp colab dovecot-shared
Also make sure that the file mode is correct (g+rw).
However, the group isn't actually used in rc17. I just fixed it today. So either wait for the next release, or get the latest nightly snapshot where this is fixed.
On Thu, Jan 18, 2007 at 09:36:07PM +0200, Timo Sirainen wrote:
On Thu, 2007-01-18 at 11:15 -0800, Brian Lavender wrote:
On Wed, Jan 17, 2007 at 03:40:14PM -0800, Mark Nienberg wrote:
Brian Lavender wrote:
I can't seem to get a shared folder working properly. I am authenticating using pam, and the users have a shell account on the system. Problem is, the permissions on the messages moved into the folder don't maintain properly, and other users can't read the share.
Did you make a dovecot-shared file?
No, I didn't create that file. Do I just touch the file and change it to the colab group? The users accessing this folder are in the colab group.
# cd /var/mail/public/.notices # touch dovecot-shared # chgrp colab dovecot-shared
Also make sure that the file mode is correct (g+rw).
However, the group isn't actually used in rc17. I just fixed it today. So either wait for the next release, or get the latest nightly snapshot where this is fixed.
It looks as if I have to do create this file dovecot-shared for sub folders as well?
brian
Brian Lavender http://www.brie.com/brian/
participants (3)
-
Brian Lavender
-
Mark Nienberg
-
Timo Sirainen