On 06/02/08, Darren J Moffat wrote: > Raymond Xiong wrote: > >Mnesia on-disk files will be placed under /usr/lib/ejabberd/db/ejabberd > >(you may notice I didn't list the directory in FastTrack, because it > >is typically created automatically). All data files under this subdir > >are owned by daemon, and have 600 as their permissions. > > That needs to change to somewhere under /var or /etc you can not assume > /usr/ or subdirs of it are writable. This would break the use of > ejabberd in the default zone or diskless client configuration.
Thanks for the catch. I will place ejabberd database files under /var/db/ejabberd. For your convenience, below are new files/dirs introduced by ejabberd: /usr/sbin/ejabberdctl - command /usr/lib/ejabberd/ - ejabberd private directory(read only) /etc/ejabberd/ - directory for ejabberd config files /var/log/ejabberd/ - directory for ejabberd log files /var/db/ejabberd/ - directory for ejabberd mnesia db files Both /var/db/ejabberd and /var/log/ejabberd will be owned by daemon. Permission of /var/db/ejabberd will be 700, and permission of /var/log/ejabberd will be 755. -- Regards, Raymond