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 I'm using a file based authentication: # cat passwd restore at backup.invalid:{SHA}+/...the.hash...:1001:1001:(gecos):/home/restore:: So why is "restore at backup.invalid" being associated with /root? I'm using 2:2.2.18-1~auto+91, but the warning has been around for ages :) -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstra?e 15, 81669 M?nchen Sitz der Gesellschaft: M?nchen, Amtsgericht M?nchen: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
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-- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstra?e 15, 81669 M?nchen Sitz der Gesellschaft: M?nchen, Amtsgericht M?nchen: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
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 deniedSame 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>
Am 27.07.2015 um 10:51 schrieb Ralf Hildebrandt:> 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 >Just guessing? The signature of the command is: doveadm [-Dv] import [-S socket_path] [-s] -u user source_location dest_parent search_query You supply "" as dest_parent which I guess could mean ".", and that may be "/root" when run as root. Try "INBOX" or "restore_folder" and see if the error vanishes. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20150727/c7b47fe1/attachment.sig>
* Ralf Hildebrandt <r at sys4.de>:> I'm using 2:2.2.18-1~auto+91, but the warning has been around for ages > :)Gone at least since 2:2.2.21-1~auto+18 -- Ralf Hildebrandt Gesch?ftsbereich IT | Abteilung Netzwerk Charit? - Universit?tsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt at charite.de | http://www.charite.de