Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Apr 1998 05:23:43 +0800 (SGT)
From:      chas <panda@peace.com.my>
To:        questions@FreeBSD.ORG
Subject:   Cyrus-imap can't create mailboxes : permissions ????
Message-ID:  <3.0.32.19980410054556.00e35120@peace.com.my>

next in thread | raw e-mail | index | archive | help
My apologies for troubling you all yet again. After over
a day spent hitting my head against this one, I have to 
ask "has anyone else had troubles installing cyrus on fbsd" ?

I've installed the port for cyrus 1.5.2 and tested it
by telneting to the imap port as well as with imtest. 
These tests passed successfully. imapd seems to be working fine
and configuration was done as per the cyrus distribution manuals.
I can log in with the admin tool (cyradm) perfectly but when 
I try to create the mailboxes, I get the following error :
"command failed: Permission denied" which I figure must be due
to file/directory permissions. 

[ cyradm session ]
# /usr/local/bin/cyradm xxxx.com.my
xxxx.com.my userid: cyrus
xxxx.com.my password:
xxxx.com.my> cm user.chas
command failed: Permission denied 

However, the configuration seems to be as per the book :

[ # more /etc/imapd.conf ]
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus chas root
srvtab: /var/imap/srvtab

[ # ls -al /var/imap ]
drwxr-x---   7 cyrus  cyrus  512 Apr 10 02:56 .
drwxr-xr-x  21 root   wheel  512 Apr  9 11:30 ..
-rw-------   1 cyrus  cyrus    0 Apr 10 02:56 delivered.db
drwxr-xr-x   2 cyrus  cyrus  512 Apr  8 14:36 log
-rw-r--r--   1 cyrus  cyrus    0 Apr  8 14:36 mailboxes
drwxr-xr-x   2 cyrus  cyrus  512 Apr  8 14:36 msg
drwxr-xr-x   2 cyrus  cyrus  512 Apr  9 14:24 proc
drwxr-xr-x   2 cyrus  cyrus  512 Apr  8 14:36 quota
drwxr-xr-x   2 cyrus  cyrus  512 Apr  8 14:36 user 

[ # ls -al /var/spool ]
# ls -al /var/spool/
drwxr-xr-x   9 bin    bin     512 Apr  8 14:37 .
drwxr-xr-x  21 root   wheel   512 Apr  9 11:30 ..
drwxr-xr-x   2 cyrus  cyrus   512 Apr  8 14:37 imap
drwxrwxr-x   2 uucp   dialer  512 Apr 10 04:57 lock
drwxr-xr-x   2 bin    daemon  512 Oct 21 22:13 lpd
drwxr-xr-x   2 root   daemon  512 Apr 10 04:42 mqueue
drwxr-xr-x   3 bin    daemon  512 Feb  9 12:42 output
drwxrwxr-x   7 uucp   uucp    512 Feb  9 12:42 uucp
drwxrwxrwx   2 uucp   uucp    512 Oct 21 22:13 uucppublic 

The user cyrus does belong to the cyrus group.

The only thing that I can think of is perhaps due to tcl.
Since I don't have X installed, Tcl/Tk have always been 
troublesome to install (I always need to use the tcl packages
as opposed to the ports) and the cyrus port installation gave
one warning message : "/usr/ports/lang/tcl81 non-existant --
 @pkgdep registration incomplete."
Nevertheless it succeeded in creating the cyradm tool (which
is all the tcl libraries were required for) and cyradm seems
to work. 

If anyone has any ideas, I would be most grateful,

Thank you very much,

chas

I've searched the archives on FBSD/dejanews/linux/imap.org 
and 4 different FAQs, as well as read the manual (repeatedly) but 
still no joy - this  must be something quite obvious I am missing 
because everybody else seems to have no problems installing cyrus.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.32.19980410054556.00e35120>