doveadm import - strange warning

Jost Krieger Jost.Krieger+dovecot at rub.de
Mon Jul 27 09:05:16 UTC 2015


On Mon Jul 27 10:51:16 2015, Ralf Hildebrandt wrote:
> Anybody seen this before?
> Seems easy to reproduce...
> 
> * Ralf Hildebrandt <r at sys4.de>:
> > I'm using the doveadm import command to extract mails from my backup:
> > 
> > % doveadm import -u restore at backup.invalid mdbox:/home/copymail/mdbox "" \
> >    mailbox INBOX header Delivered-To backup+$SEARCHPATTERN at backup.invalid
> > 
> > This works like a charm, I'm getting all the mails, and I can access
> > the newly generated mailbox.
> > 
> > But when executing the command I'm getting an annoying warning:
> > 
> > doveadm(restore at backup.invalid): Error: chdir(/root/) failed: Permission denied (euid=1001(copymail) egid=1001(copymail) missing +x perm: /root, dir owned by 0:0 mode=0700)
> > doveadm(restore at backup.invalid): Error: chdir(/root) failed: Permission denied
 
Same happened to me. It seems doveadm is changing uids and then chdirs
to the original home directory.

I made it go away by using "sudo". This will not fit all situations.

Yours
Jost Krieger
-- 
| Jost.Krieger+sig at ruhr-uni-bochum.de  Please help stamp out spam! |
| Postmaster, JAPH, resident answer machine    at RUB Comp. Center |
| Sincere words are not sweet, sweet words are not sincere.        |
|                                          Lao Tse, Tao Te King 81 |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4784 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20150727/8bc597aa/attachment.p7s>


More information about the dovecot mailing list