Permission denied creating mailboxes

Patrick Gibson cyrus_info at patrickg.com
Fri Oct 22 17:54:48 EDT 2004


I am also having this problem -- I just installed 2.2.8 using the 
FreeBSD ports. Authentication is working fine, and I have the "admins:" 
line set properly in my imapd.conf.

In fact, other commands are getting the same problem:

localhost.retrix.com> setinfo motd "Hello world."
setinfo: Permission denied

I ran the mkimap program as the user "cyrus", and all the permissions 
appear to be correct:

# ls -al /var/imap
total 24
drwxr-x---  10 cyrus  cyrus  512 Oct 22 12:55 .
drwxr-xr-x  24 root   wheel  512 Oct 21 14:36 ..
-rw-------   1 cyrus  cyrus  144 Oct 22 10:25 annotations.db
drwxr-xr-x   2 cyrus  cyrus  512 Oct 22 10:25 db
drwx------   2 cyrus  cyrus  512 Oct 22 12:55 db.backup1
drwx------   2 cyrus  cyrus  512 Oct 22 12:25 db.backup2
drwxr-xr-x   2 cyrus  cyrus  512 Oct 22 10:19 log
-rw-------   1 cyrus  cyrus  144 Oct 22 10:26 mailboxes.db
drwxr-xr-x   2 cyrus  cyrus  512 Oct 22 10:19 msg
drwxr-xr-x   2 cyrus  cyrus  512 Oct 22 13:08 proc
drwxr-xr-x   2 cyrus  cyrus  512 Oct 22 10:19 ptclient
drwxr-xr-x   2 cyrus  cyrus  512 Oct 22 10:25 socket

# ls -al /var/spool/imap
total 6
drwxr-x---   3 cyrus  cyrus  512 Oct 22 10:19 .
drwxr-xr-x  12 root   wheel  512 Oct 21 14:42 ..
drwxr-xr-x   2 cyrus  cyrus  512 Oct 22 10:19 stage.

I've tried running the "master" process in debug mode (-D), but it does 
not give me any information as to why the permission is being denied.

I've searched the archives high and low, and haven't been able to find 
what could possibly be the problem.

Any experts out there willing to field a guess? If all the cyrus 
folders are owned by the user "cyrus", and the server runs as the user 
"cyrus", and each folder and file have owner write-ablility, how could 
there possibly be a "permission denied" message?

In my case, here's the output of the "ver" command:

name       : Cyrus IMAPD
version    : v2.2.8 2004/07/29 15:44:37
vendor     : Project Cyrus
support-url: http://asg.web.cmu.edu/cyrus
os         : FreeBSD
os-version : 4.10-RELEASE-p3
environment: Built w/Cyrus SASL 2.1.19
              Running w/Cyrus SASL 2.1.19
              Built w/Sleepycat Software: Berkeley DB 4.2.52: (December  
3, 2003)
              Running w/Sleepycat Software: Berkeley DB 4.2.52: 
(December  3, 2003)
              Built w/OpenSSL 0.9.7d 17 Mar 2004
              Running w/OpenSSL 0.9.7d 17 Mar 2004
              CMU Sieve 2.2
              TCP Wrappers
              mmap = shared
              lock = fcntl
              nonblock = fcntl
              auth = unix
              idle = poll



On 22-Oct-04, at 12:27 PM, Mike Nuss wrote:

> I've just installed cyrus-imapd-2.2.8 using the srpm from 
> http://www.invoca.ch/pub/packages/cyrus-imapd/ and I am trying to 
> create the initial user mailboxes.
>
> My imapd.conf looks like this:
>
>
> configdirectory: /var/lib/imap
> partition-default: /var/spool/imap
> admins: cyrus
> sievedir: /var/lib/imap/sieve
> sendmail: /usr/sbin/sendmail
> hashimapspool: true
> sasl_pwcheck_method: saslauthd
> sasl_mech_list: PLAIN
> tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
> tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
> tls_ca_file: /usr/share/ssl/certs/ca-bundle.crt
> virtdomains: yes
> defaultdomain: <mydomain.com>
>
>
> I ran /usr/lib/cyrus-imapd/mkimap as cyrus.
>
> Then I tried to use cyradm as "cyrus" to try to create a mailbox. I 
> got the following error:
>
>
> -bash-2.05b$ cyradm localhost
> IMAP Password:
>
> localhost.localdomain> cm user.test
> createmailbox: Permission denied
>
>
> Any thoughts?
>
> Thanks,
> Mike Nuss
> ---
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>
>


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list