vmoduser in 5.4.30 set wrong permission on "maildirsize" file

Alessio Cecchi <[email protected]>
Newsgroups gmane.mail.vpopmail
Organization Cecchi Business Solutions
Message-ID <[email protected]>
Hi,

I'm testing the latest stable release of vpopmail. vusaged is disable. I 
have found this issue, when I change the quota via "vmoduser" the owner 
of "maildirsize" file becomes root:root instead of vpopmail:vchkpw


mail01:~# /home/vpopmail/bin/vadddomain cbstest.com password

mail01:~# ls -la /home/vpopmail/domains/cbstest.com/postmaster/Maildir/
totale 24
drwx------ 5 vpopmail vchkpw 4096  3 mar 17:59 .
drwx------ 3 vpopmail vchkpw 4096  3 mar 17:59 ..
drwx------ 2 vpopmail vchkpw 4096  3 mar 17:59 cur
-rw------- 1 vpopmail vchkpw   15  3 mar 17:59 maildirsize
drwx------ 2 vpopmail vchkpw 4096  3 mar 17:59 new
drwx------ 2 vpopmail vchkpw 4096  3 mar 17:59 tmp

mail01:~# /home/vpopmail/bin/vadduser [email protected] password

mail01:~# ls -la /home/vpopmail/domains/cbstest.com/alessio/Maildir/
totale 24
drwx------ 5 vpopmail vchkpw 4096  3 mar 18:00 .
drwx------ 3 vpopmail vchkpw 4096  3 mar 18:00 ..
drwx------ 2 vpopmail vchkpw 4096  3 mar 18:00 cur
-rw------- 1 vpopmail vchkpw   15  3 mar 18:00 maildirsize
drwx------ 2 vpopmail vchkpw 4096  3 mar 18:00 new
drwx------ 2 vpopmail vchkpw 4096  3 mar 18:00 tmp

mail01:~# /home/vpopmail/bin/vmoduser -q 50M cbstest.com

mail01:~# ls -la /home/vpopmail/domains/cbstest.com/alessio/Maildir/
totale 52
drwx------ 8 vpopmail vchkpw 4096  3 mar 18:00 .
drwx------ 3 vpopmail vchkpw 4096  3 mar 18:00 ..
drwx------ 2 vpopmail vchkpw 4096  3 mar 18:00 cur
drwx------ 5 vpopmail vchkpw 4096  3 mar 18:00 .Drafts
-rw------- 1 root     root     14  3 mar 18:00 maildirsize
drwx------ 2 vpopmail vchkpw 4096  3 mar 18:00 new
drwx------ 5 vpopmail vchkpw 4096  3 mar 18:00 .Spam
-rw------- 1 vpopmail vchkpw   18  3 mar 18:00 subscriptions
drwx------ 2 vpopmail vchkpw 4096  3 mar 18:00 tmp
drwx------ 5 vpopmail vchkpw 4096  3 mar 18:00 .Trash

mail01:~# ls -la /home/vpopmail/domains/cbstest.com/postmaster/Maildir/
totale 24
drwx------ 5 vpopmail vchkpw 4096  3 mar 18:00 .
drwx------ 3 vpopmail vchkpw 4096  3 mar 17:59 ..
drwx------ 2 vpopmail vchkpw 4096  3 mar 17:59 cur
-rw------- 1 root     root     14  3 mar 18:00 maildirsize
drwx------ 2 vpopmail vchkpw 4096  3 mar 17:59 new
drwx------ 2 vpopmail vchkpw 4096  3 mar 18:00 tmp


In this situation my IMAP server (dovecot) is unable to know my quote 
and more if I try to remove a messagges returns an error.

When an e-mail come in my account the owner of "maildirsize" file 
returns the right:

mail01:/home/vpopmail/domains/cbshosting.eu/alessio/Maildir# ls -la
totale 72
drwx------ 8 vpopmail vchkpw  4096  3 mar 18:14 .
drwx------ 3 vpopmail vchkpw  4096  3 mar 18:00 ..
drwx------ 2 vpopmail vchkpw  4096  3 mar 18:13 cur
drwx------ 5 vpopmail vchkpw  4096  3 mar 18:10 .Drafts
-rw------- 1 vpopmail vchkpw    33  3 mar 18:14 maildirsize
drwx------ 2 vpopmail vchkpw  4096  3 mar 18:14 new
drwx------ 5 vpopmail vchkpw  4096  3 mar 18:10 .Spam
-rw------- 1 vpopmail vchkpw    18  3 mar 18:00 subscriptions
drwx------ 2 vpopmail vchkpw  4096  3 mar 18:14 tmp
drwx------ 5 vpopmail vchkpw  4096  3 mar 18:10 .Trash

There is a solution to this problem?
Thanks
-- 
Alessio Cecchi is:
@ ILS -> http://www.linux.it/~alessice/
on LinkedIn -> http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/
@ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
@ LOLUG -> Socio http://www.lolug.net

!DSPAM:4b8ea7df32711789211690!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.