Robert Giddings wrote:
> Hi Guys,
>
> I keep getting the error:
>
> vmysql: can't read settings from /home/vpopmail/etc/vpopmail.mysql
>
> in my httpd error_log when using vqadmin to add domains etc.
>
> I am able to add and delete domains etc fine from command line using
> vpopmail/bin commands.
>
> Has anyone else had this problem? My boss is going to be the end user, so I
> really need to get to the bottom of this, so that he has a web app to use to
> admin domains.
>
> Thanks,
>
> Rob
>
>
What permissions/ownership does the file have? Mine is:
# ls -l /home/vpopmail/etc/vpopmail.mysql
-rw-r--r-- 1 vpopmail vchkpw 43 May 16 2006 /home/vpopmail/etc/vpopmail.mysql
Problem is, /home/vpopmail is:
# ls -ld /home/vpopmail
drwx------ 9 vpopmail vchkpw 4096 Jan 11 07:05 /home/vpopmail
so no one but the vpopmail user (and root of course) can get into that
directory tree.
What user does vqadmin run under? I'm guessing apache.
So, if you were to
# chmod g+x /home/vpopmail
# usermod -G vchkpw -a apache
This would allow the vchkpw group to read into the /home/vpopmail directory
tree, and give apache vchkpw group permissions.
I'm guessing that would fix it for you, but don't know if there would be any
security risks by doing so.
--
-Eric 'shubes'
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]