-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 13 Apr 2010, Alex wrote:
So basically if I execute the script as root the maildir is root the uid/gid
is root
I search and I found a trick for home :
HOME=/home/sites/domain.net/mail/test/Maildir/; user=t...@domain.net; echo "1
getquotaroot inbox" | /usr/local/sbin/dovecot -c /usr/local/etc/dovecot.conf
--exec-mail imap
(but first I must put used_quota and messages values on -1 in the quota
table)
If I run this , all dovecot files are created in the user homedir (correct)
but with the wrong uid/gid (root).
If I change the owner of that files , next time I run the same command ,
nothing changes (uid/gid remain vmail.vmail).
See: http://wiki.dovecot.org/PreAuth
You are using a "pre-auth"'ed session, that means uid/gid has to be set
before running the command.
Regards,
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS8RW7L+Vh58GPL/cAQIXBQgAo8o2JAbWLm3mbW1mpmGVm3RpVBH0u1rD
CCTl92z8+iR3r5Pv6hNPGwXfSJ75KTXcwMbNcVj8qQQcZJdsJ6nIcCpzE8sLn9Mz
4m0gjfwtlEbsO3XCvyxpxnebhM0rCVodyZoq6DQOy3cVbcjwzG29IEx/CoQPQ/Y3
Gfl6fyJJRmWHYvVjIhYB36phOsO1if9zNm2JIRni6dSrWc83OIVPfQrQjzdEMi+k
XjtykE83wC7fxHnDTdlQc8pbEaO1hfw8xGtaLLgZci0v+ytf+FZljXM4PiBX0vEd
nSmaqsC8lJ4RPcTIjaMstm/IbV+IRVrQfGfCV/fPlW2B5bcoG7Wreg==
=6wNc
-----END PGP SIGNATURE-----