muclogs created with restrictive file permissions

My muclog files are being created with
-rw-r----- 1 ejabberd ejabberd 4846 2012-01-06 11:39 06.html
Because of this I can no longer browse to the muclogs. What is the best way to fix this so that the files are created with a minimum of rw/r/r permissions?

According to the changelog
( https://launchpad.net/ubuntu/maverick/+source/ejabberd/+changelog )
a new umask (027) was introduced in 2.4.1

I could not find any reference to a umask change in the ejabberd/process-one changelogs so perhaps this is unique to Ubuntu?

I am running 2.1.5-3+squeeze1build0.11

I added the apache user

I added the apache user (www-data) to the ejabberd group and that allows me to
view the logs. I'd still prefer to find a way to make the dirs "all" readable (other than using a cron job)

# usermod -a -G ejabberd www-data

Syndicate content