[Dovecot] "fchown() failed with file" and Operation not permitted with indexes
Dear all,
Getting lots of these errors in our maillog with the INDEX changed:
dovecot: IMAP(ghenry): fchown() failed with file /home/ghenry/Maildir/index/.INBOX/dovecot.index.tmp: Operation not permitted
For .log and .cache as well.
We have:
location = maildir:/home/%u/Maildir:CONTROL=%h/Maildir/control:INDEX=%h/Maildir/index
I looked in safe-mkdir.c and saw:
fchown() failed for (line 42)
to change the owner first, so don't know why we are getting this error?
Thanks,
Gavin.
-- Kind Regards,
Gavin Henry. Managing Director.
T +44 (0) 1224 279484 M +44 (0) 7930 323266 F +44 (0) 1224 742001 E ghenry@suretecsystems.com
Open Source. Open Solutions(tm).
finally the server is running :)
hey pple my computer starting to work again alone
dont know sing like the server was with something but i started to do the files backup
and i deleted a few old backups files and move to other computer on the net
and guess what=?
the dovecot imap server is running again
hehehe anyway im going to finish the backups
regards luis
On 5/3/06, Gavin Henry <ghenry@suretecsystems.com> wrote:
Dear all,
Getting lots of these errors in our maillog with the INDEX changed:
dovecot: IMAP(ghenry): fchown() failed with file /home/ghenry/Maildir/index/.INBOX/dovecot.index.tmp: Operation not permitted
For .log and .cache as well.
We have:
location = maildir:/home/%u/Maildir:CONTROL=%h/Maildir/control:INDEX=%h/Maildir/index
I looked in safe-mkdir.c and saw:
fchown() failed for (line 42)
to change the owner first, so don't know why we are getting this error?
Thanks,
Gavin.
-- Kind Regards,
Gavin Henry. Managing Director.
T +44 (0) 1224 279484 M +44 (0) 7930 323266 F +44 (0) 1224 742001 E ghenry@suretecsystems.com
Open Source. Open Solutions(tm).
<quote who="Luis Atala">
finally the server is running :)
<snip>
Thanks for this ;-)
On 5/3/06, Gavin Henry <ghenry@suretecsystems.com> wrote:
Dear all,
Getting lots of these errors in our maillog with the INDEX changed:
dovecot: IMAP(ghenry): fchown() failed with file /home/ghenry/Maildir/index/.INBOX/dovecot.index.tmp: Operation not permitted
For .log and .cache as well.
We have:
location = maildir:/home/%u/Maildir:CONTROL=%h/Maildir/control:INDEX=%h/Maildir/index
I looked in safe-mkdir.c and saw:
fchown() failed for (line 42)
to change the owner first, so don't know why we are getting this error?
Thanks,
Gavin.
-- Kind Regards,
Gavin Henry. Managing Director.
T +44 (0) 1224 279484 M +44 (0) 7930 323266 F +44 (0) 1224 742001 E ghenry@suretecsystems.com
Open Source. Open Solutions(tm).
On Wed, 2006-05-03 at 21:49 +0100, Gavin Henry wrote:
Dear all,
Getting lots of these errors in our maillog with the INDEX changed:
dovecot: IMAP(ghenry): fchown() failed with file /home/ghenry/Maildir/index/.INBOX/dovecot.index.tmp: Operation not permitted
You've created dovecot-shared file with a group that the user doesn't have permission to use?
<quote who="Timo Sirainen">
On Wed, 2006-05-03 at 21:49 +0100, Gavin Henry wrote:
Dear all,
Getting lots of these errors in our maillog with the INDEX changed:
dovecot: IMAP(ghenry): fchown() failed with file /home/ghenry/Maildir/index/.INBOX/dovecot.index.tmp: Operation not permitted
You've created dovecot-shared file with a group that the user doesn't have permission to use?
Yeah, it has a group permission for a managers group.
-- Kind Regards,
Gavin Henry. Managing Director.
T +44 (0) 1224 279484 M +44 (0) 7930 323266 F +44 (0) 1224 742001 E ghenry@suretecsystems.com
Open Source. Open Solutions(tm).
On Wed, 2006-05-03 at 22:59 +0100, Gavin Henry wrote:
<quote who="Timo Sirainen">
On Wed, 2006-05-03 at 21:49 +0100, Gavin Henry wrote:
Dear all,
Getting lots of these errors in our maillog with the INDEX changed:
dovecot: IMAP(ghenry): fchown() failed with file /home/ghenry/Maildir/index/.INBOX/dovecot.index.tmp: Operation not permitted
You've created dovecot-shared file with a group that the user doesn't have permission to use?
Yeah, it has a group permission for a managers group.
I think the problem is that Dovecot in general doesn't preserve the groups for mail processes, unless you make userdb return "system_user=username". If you're using passwd as passdb it should have been done automatically, but not for other userdbs.
participants (3)
-
Gavin Henry
-
Luis Atala
-
Timo Sirainen