[Dovecot] Corrected permissions for login directory message
Hello.
I already have this warn message when I start dovecot (1.1.3). I saw some message in mailing list about this warning, but nothing which solve my problem.
See the message:
root@machine dovecot $ /usr/local/etc/rc.d/dovecot restart Stopping dovecot. Waiting for PIDS: 47494. Starting dovecot. Warning: Corrected permissions for login directory /var/run/dovecot/login
See the permissions: ls -l /var/rundrwxr-xr-x 3 root wheel 512 Sep 11 15:42 dovecot
ls -l /var/run/dovecot/ srw-rw---- 1 dovecot mail 0 Sep 11 15:42 auth-master srw------- 1 root wheel 0 Sep 11 15:42 auth-worker.47529 srwxrwxrwx 1 root wheel 0 Sep 11 15:42 dict-server drwxr-x--- 2 root dovecot-auth 512 Sep 11 15:42 login -rw------- 1 root wheel 6 Sep 11 15:42 master.pid
ls -l /var/run/dovecot/login/ srw-rw---- 1 root dovecot-auth 0 Sep 11 15:42 default -rw-r--r-- 2 root wheel 230 Sep 11 15:41 ssl-parameters.dat
And the dovecot conf: # 1.1.3: /usr/local/etc/dovecot.conf syslog_facility: local6 ssl_cert_file: /etc/ssl/mail/mail.nicoelro.net.cert ssl_key_file: /etc/ssl/mail/mail.nicoelro.net.key disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/imap-login login_user: dovecot-auth login_greeting: Mail Server login_processes_count: 2 verbose_proctitle: yes first_valid_uid: 143 last_valid_uid: 143 first_valid_gid: 143 last_valid_gid: 143 mail_access_groups: mail mail_location: maildir:/var/mail/vmail/%u/ mail_plugins: quota imap_quota imap_client_workarounds: delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep auth default: mechanisms: plain login passdb: driver: sql args: /usr/local/etc/dovecot/dovecot-sql.conf userdb: driver: sql args: /usr/local/etc/dovecot/dovecot-sql.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix master: path: /var/run/dovecot/auth-master mode: 432 user: dovecot group: mail plugin: quota: maildir sieve: /var/mail/vmail/%u/sieve
Thanks for your informations.
--
- Nicolas.
On Thu, 11 Sep 2008 15:45:09 +0200 Nicolas Letellier nicolas@nicoelro.net wrote:
Hello.
I already have this warn message when I start dovecot (1.1.3). I saw some message in mailing list about this warning, but nothing which solve my problem.
See the message:
root@machine dovecot $ /usr/local/etc/rc.d/dovecot restart Stopping dovecot. Waiting for PIDS: 47494. Starting dovecot. Warning: Corrected permissions for login directory /var/run/dovecot/login
See the permissions: ls -l /var/rundrwxr-xr-x 3 root wheel 512 Sep 11 15:42 dovecot
ls -l /var/run/dovecot/ srw-rw---- 1 dovecot mail 0 Sep 11 15:42 auth-master srw------- 1 root wheel 0 Sep 11 15:42 auth-worker.47529 srwxrwxrwx 1 root wheel 0 Sep 11 15:42 dict-server drwxr-x--- 2 root dovecot-auth 512 Sep 11 15:42 login -rw------- 1 root wheel 6 Sep 11 15:42 master.pid
ls -l /var/run/dovecot/login/ srw-rw---- 1 root dovecot-auth 0 Sep 11 15:42 default -rw-r--r-- 2 root wheel 230 Sep 11 15:41 ssl-parameters.dat
And the dovecot conf: # 1.1.3: /usr/local/etc/dovecot.conf syslog_facility: local6 ssl_cert_file: /etc/ssl/mail/mail.nicoelro.net.cert ssl_key_file: /etc/ssl/mail/mail.nicoelro.net.key disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/imap-login login_user: dovecot-auth login_greeting: Mail Server login_processes_count: 2 verbose_proctitle: yes first_valid_uid: 143 last_valid_uid: 143 first_valid_gid: 143 last_valid_gid: 143 mail_access_groups: mail mail_location: maildir:/var/mail/vmail/%u/ mail_plugins: quota imap_quota imap_client_workarounds: delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep auth default: mechanisms: plain login passdb: driver: sql args: /usr/local/etc/dovecot/dovecot-sql.conf userdb: driver: sql args: /usr/local/etc/dovecot/dovecot-sql.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix master: path: /var/run/dovecot/auth-master mode: 432 user: dovecot group: mail plugin: quota: maildir sieve: /var/mail/vmail/%u/sieve
Thanks for your informations.
--
- Nicolas. Hello.
I need help. I *always* this warn message when I start dovecot. I tested many owners/groups, and the warning is always here.
Which permissions must I set for my configuration?
Thanks!
Regards,
-- -Nicolas.
On Fri, 2008-09-12 at 09:47 +0200, Nicolas Letellier wrote:
Warning: Corrected permissions for login directory /var/run/dovecot/login
See the permissions: ls -l /var/rundrwxr-xr-x 3 root wheel 512 Sep 11 15:42 dovecot
This doesn't change.
drwxr-x--- 2 root dovecot-auth 512 Sep 11 15:42 login
The warning is only about this directory. Does it complain about it every single time you start Dovecot? Do the permissions change or are they the same before/after startup?
I need help. I *always* this warn message when I start dovecot.
It's not a real problem even if you can't solve this..
I tested many owners/groups, and the warning is always here.
The correct permissions are those that you see after startup.
Hi Timo,
I need help. I *always* this warn message when I start dovecot.
It's not a real problem even if you can't solve this..
It's not a real problem, but I would like to understand this warning. Today, I don't understand it.
I tested many owners/groups, and the warning is always here.
The correct permissions are those that you see after startup.
No. This warning appears always after starting dovecot. You say permissions after startup are good. Ok. But why this warning msg appears after the next start? (I didn't change permissions between).
Regards,
-- -Nicolas.
On Sun, 14 Sep 2008 09:32:40 +0200 Nicolas Letellier nicolas@nicoelro.net wrote:
Hi Timo,
I need help. I *always* this warn message when I start dovecot.
It's not a real problem even if you can't solve this..
It's not a real problem, but I would like to understand this warning. Today, I don't understand it.
I tested many owners/groups, and the warning is always here.
The correct permissions are those that you see after startup.
No. This warning appears always after starting dovecot. You say permissions after startup are good. Ok. But why this warning msg appears after the next start? (I didn't change permissions between).
Regards,
-- -Nicolas. Ok, I found the problem. It's the script /usr/local/etc/rc.d/dovecot. It makes a "/usr/bin/install -o root -g dovecot -m 0750 -d ${base}/login" before starting, so, Dovecot corrects it immediately after.
I use dovecot-auth user for connections (and not odvecot user). So, this is the problem.
Regards,
-- -Nicolas.
participants (2)
-
Nicolas Letellier
-
Timo Sirainen