Re: Permission denied with creating mailboxes [solved]
Hello, Am Samstag, 7. Juli 2007 19:49 schrieb Rudy Gevaert: > Manfred Rebentisch wrote: > > > > localhost> cm users.testuser > > It's cm user.testuser or if you are using the unix hierarchy separator > (check your imapd.conf) it's cm user/testuser. Thats right too. > > > createmailbox: System I/O error > > > > syslog: > > Jul 7 14:01:19 server9 cyrus/imap[3946]: IOERROR: creating > > directory /imap/mail: Permission denied > > > > server9:/var/lib/cyrus# ls -al /imap/mail/ > > > > drwxrwx--- 2 cyrus mail 4096 2007-05-11 15:31 a > > drwxrwx--- 2 cyrus mail 4096 2007-05-11 15:31 b > > > > I think, I will find the reason for this. But the error messages of cyrus > > are very poor... > > So, it was the ownership of the root directory /imap which was root:root with "rwxrwx---". Changing to cyrus:mail solved the problem. Thank you! Manfred Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Permission denied with creating mailboxes
Manfred Rebentisch wrote: > Am Samstag, 7. Juli 2007 12:47 schrieb Stephen Forster: >> Manfred, >> >> Obvious question: is 'cyrus' listed as an administrator on the 'admins:' >> line in imapd.conf? >> >> If not, do it then restart or reload cyrus. >> > Wow! Great! But after activating the line > admins: cyrus > > I get the following error: > > localhost> cm users.testuser It's cm user.testuser or if you are using the unix hierarchy separator (check your imapd.conf) it's cm user/testuser. > createmailbox: System I/O error > > syslog: > Jul 7 14:01:19 server9 cyrus/imap[3946]: IOERROR: creating > directory /imap/mail: Permission denied > > server9:/var/lib/cyrus# ls -al /imap/mail/ > > drwxrwx--- 2 cyrus mail 4096 2007-05-11 15:31 a > drwxrwx--- 2 cyrus mail 4096 2007-05-11 15:31 b > > I think, I will find the reason for this. But the error messages of cyrus are > very poor... > > Manfred > > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Rudy Gevaert [EMAIL PROTECTED] tel:+32 9 264 4734 Directie ICT, afd. Infrastructuur Direction ICT, Infrastructure dept. Groep Systemen Systems group Universiteit Gent Ghent University Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Permission denied with creating mailboxes
Am Samstag, 7. Juli 2007 12:47 schrieb Stephen Forster: > Manfred, > > Obvious question: is 'cyrus' listed as an administrator on the 'admins:' > line in imapd.conf? > > If not, do it then restart or reload cyrus. > Wow! Great! But after activating the line admins: cyrus I get the following error: localhost> cm users.testuser createmailbox: System I/O error syslog: Jul 7 14:01:19 server9 cyrus/imap[3946]: IOERROR: creating directory /imap/mail: Permission denied server9:/var/lib/cyrus# ls -al /imap/mail/ drwxrwx--- 2 cyrus mail 4096 2007-05-11 15:31 a drwxrwx--- 2 cyrus mail 4096 2007-05-11 15:31 b I think, I will find the reason for this. But the error messages of cyrus are very poor... Manfred Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Permission denied with creating mailboxes
Manfred Rebentisch wrote: > Hello, > I use debian etch with cyrus 2.2 and sasl2. > > cyradm --user cyrus --server localhost > IMAP Password: > localhost> > localhost> > localhost> cm users.testusr > createmailbox: Permission denied > > > I cannot find out, why this happens. There are no log messages, no > information > about the reasons. It should be nice to get reasons from the program... > > I do check the ownership of files (/etc/sasldb2, /var/lib/cyrus/*, /imap/*) > and so on. > > I think, the user "cyrus" has not the right to create mailboxes. But I don't > know, how to set this right. What are the admin users in your imapd.conf? -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Rudy Gevaert [EMAIL PROTECTED] tel:+32 9 264 4734 Directie ICT, afd. Infrastructuur Direction ICT, Infrastructure dept. Groep Systemen Systems group Universiteit Gent Ghent University Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Permission denied with creating mailboxes
Hi Manfred, On 07.07.2007, at 11:41, Manfred Rebentisch wrote: > Hello, > I use debian etch with cyrus 2.2 and sasl2. > > cyradm --user cyrus --server localhost > IMAP Password: > localhost> > localhost> > localhost> cm users.testusr > createmailbox: Permission denied > > > I cannot find out, why this happens. There are no log messages, no > information > about the reasons. It should be nice to get reasons from the > program... > > I do check the ownership of files (/etc/sasldb2, /var/lib/cyrus/*, / > imap/*) > and so on. > > I think, the user "cyrus" has not the right to create mailboxes. > But I don't > know, how to set this right. What's your admin setting in imapd.conf? Is the cyrus user listed there? If not, you should add it - cyrus is the default for the admin username, but you may use anything you like. If you change the setting, you may not do admin jobs using the "cyrus" user. If you don't have an "admin" or "admins" (I don't know the exact name of the option - please refer to the documentation for that), you should try to add it to your config. Baltasar -- Baltasar Cevc _ FORMER 03 GmbH _ infanteriestraße 19 haus 6 eg _ D-80797 muenchen _ http://www.former03.de Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Permission denied with creating mailboxes
Manfred, Obvious question: is 'cyrus' listed as an administrator on the 'admins:' line in imapd.conf? If not, do it then restart or reload cyrus. Steve Manfred Rebentisch wrote: >Hello, >I use debian etch with cyrus 2.2 and sasl2. > >cyradm --user cyrus --server localhost >IMAP Password: > localhost> >localhost> >localhost> cm users.testusr >createmailbox: Permission denied > > >I cannot find out, why this happens. There are no log messages, no information >about the reasons. It should be nice to get reasons from the program... > >I do check the ownership of files (/etc/sasldb2, /var/lib/cyrus/*, /imap/*) >and so on. > >I think, the user "cyrus" has not the right to create mailboxes. But I don't >know, how to set this right. > >Thank you for tips. >Manfred > >Cyrus Home Page: http://cyrusimap.web.cmu.edu/ >Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki >List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > > > > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html