doveadm import - strange warning

Ralf Hildebrandt Ralf.Hildebrandt at charite.de
Fri Jul 31 09:18:06 UTC 2015


> I think there are two independent errors.
> First:
> >doveadm(restore at backup.invalid): Error: chdir(/root/) failed: Permission denied (euid=1001(theid) egid=1001(theid) missing +x perm: /root, dir owned by 0:0 mode=0700)
> >doveadm(restore at backup.invalid): Error: chdir(/root) failed: Permission denied
> Here I think doveadm import tries to do a chdir to the users HOME Directory
> and does it wrong. It uses the bash environment variable $HOME instead of
> the users home information as shown by doveadm user.
> 
> Why do I think so, because if I manually export the bash environment HOME to
> the Home Directory of the user I want to import to I don't receive this
> error anymore.
> 
> Example:
> export HOME="/mailhome/userA"
> doveadm import -u userA maildir:/backup/userA Backup ALL;
> -> No Error
> export HOME="/root"
> doveadm import -u userA maildir:/backup/userA Backup ALL;
> -> Error as seen above.

Yes, this was my actual problem. So doveadm is really doing something
wrong.
 
> Second:
That was not my original problem :)

> If the first error is a bug or a feature I don't know, but doveadm import
> works correct with or without this error shown. At least for the things I
> have done.

Yes, it works. But personally I think it shouldn't emit errors if
everything works as expected...

I'll just work around it.

-- 
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
	    


More information about the dovecot mailing list