unable to open Berkeley db /etc/sasldb2: Permission denied
Leon Kolchinsky
leonk at construct.haifa.ac.il
Tue Jan 9 05:22:11 EST 2007
> -----Original Message-----
> From: Alex Prinsier [mailto:cyrus at aphexer.mailhaven.com]
> Sent: Tuesday, January 09, 2007 11:06 AM
> To: Leon Kolchinsky
> Cc: info-cyrus at lists.andrew.cmu.edu
> Subject: Re: unable to open Berkeley db /etc/sasldb2: Permission denied
>
> Try:
> chgrp mail /etc/sasldb2
> chmod 660 /etc/sasldb2
>
> You seem to have configured cyrus to access sasldb2. That means you
> should give it access to the database too :) Currently it's set only
> root can read/write it.
>
I think you’re right. I forgot this step:
# chgrp mail /etc/sasldb2
# ls -al /etc/sasldb2
-rw-r----- 1 root mail 12288 11月 19 20:02 /etc/sasldb2
No errors till now.
I'll keep an eye on it.
Thanks,
Leon
> If you're not using sasldb2 you should probably better disable it in
> your config.
>
> Hope it helps.
>
> Alex
>
> Leon Kolchinsky wrote:
> > Hello All,
> >
> >
> > I have a working mail system Cyrus+Postfix+Web-cyradm+Amavisd-
> new(SA+ClamAV)
> > with 2 virtual domains.
> >
> > All is working, but I've noticed that I keep getting:
> > --------------------------------------------------
> > Jan 9 10:28:20 mail pop3[25728]: unable to open Berkeley db
> /etc/sasldb2:
> > Permission denied
> > Jan 9 10:28:23 mail pop3[25728]: unable to open Berkeley db
> /etc/sasldb2:
> > Permission denied
> > Jan 9 10:29:55 mail pop3[25728]: unable to open Berkeley db
> /etc/sasldb2:
> > Permission denied
> > Jan 9 10:29:58 mail pop3[25728]: unable to open Berkeley db
> /etc/sasldb2:
> > Permission denied
> >
> > in my /var/log/warn file.
> >
> >
> > I did a little googling and thought that this procedure would help
> (adding
> > mail and postfix to the same group):
> > # ls -l /etc/sasldb2
> > -rw-r----- 1 root root 12288 Sep 15 2005 /etc/sasldb2
> >
> > Now check the group of cyrus user:
> > # cat /etc/passwd| grep cyrus
> > cyrus:x:96:12:User for cyrus-imapd:/usr/lib/cyrus:/bin/bash
> >
> > Now make sure that cyrus and postfix in the same group and restart cyrus
> and
> > postfix:
> > # cat /etc/group| grep 12
> > mail:x:12:mail,postfix
More information about the Info-cyrus
mailing list