[Dovecot] Permission for /var/run/dovecot
I have just installed my mail server on a Ubuntu Linux V.7.10 box with sendmail and dovecot imap from the Ubuntu packages. Each time the machines boots, I get the following messages:
Starting mail server: dovecotWarning: Fixing permissions of /var/run/dovecot to be world readable Warning: Corrected permissions for login directory /var/run/dovecot/login
After the boot the permissions visible are: drwxr-xr-x root root /var/run/dovecot drwxr-x--- root dovecot /var/run/dovecot/login
What permissions do I need to set so that the warnings do not appear?
Hi,
On 11/12/2007, Dr. Ashok N. Ullal ashok.ullal@dikg-tuebingen.de wrote:
After the boot the permissions visible are: drwxr-xr-x root root /var/run/dovecot drwxr-x--- root dovecot /var/run/dovecot/login
What permissions do I need to set so that the warnings do not appear?
It needs to be owned by a non-root user. Otherwise, compromising the server could result in compromising your box, and dovecot won't allow that.
Try adding a non-priv'd user to your system; one that doesn't have access to anything, and is not usedby any other program. Then set the permission of dovecot to that user.
Regards, Ronald.
-- Ronald MacDonald http://www.rmacd.com/ 0777 235 1655
On Tue, 2007-12-11 at 16:38 +0100, Dr. Ashok N. Ullal wrote:
I have just installed my mail server on a Ubuntu Linux V.7.10 box with sendmail and dovecot imap from the Ubuntu packages. Each time the machines boots, I get the following messages:
Starting mail server: dovecotWarning: Fixing permissions of /var/run/dovecot to be world readable Warning: Corrected permissions for login directory /var/run/dovecot/login
What Dovecot version do you have?
These probably happen because /var/run/* gets deleted when booting. Some old Dovecot versions gave these warnings at startup when it created those directories itself, but if you have v1.0.0 or newer, the problem is something else.
participants (3)
-
Dr. Ashok N. Ullal
-
Ronald MacDonald
-
Timo Sirainen