Peter Janett wrote:
>
> I can't seem to get tcprules OR cbd Perl module to work. I have spent hours
> playing with the permissions of all the files, but still get this error:
> tcprules: fatal: unable to move /usr/local/etc/tcp.smtp.tmp to
> /usr/local/etc/tcp.smtp.cdb: access denied
>
> Would someone mind sharing with permissions on tcp.smtp.tmp, tcp.smtp,
> tcp.smtp.cdb, tcprules, and tcprulescheck?
>
> I'm running Qmail via Inetd, and can write the tcp.smtp file fine, but all
> attempts to create the .cdb file fail with the error listed above.
>
> Thanks in advance for any and all ideas,
I am running Qmail with TCPserver and Vpopmail so their may be some
permission difference there but this is what I have for the files:
-rw-r--r-- 1 vpopmail vchkpw 60 Jun 8 11:27 tcp.smtp
-rw-r--r-- 1 root vchkpw 2240 Sep 2 16:14 tcp.smtp.cdb
-rwx--x--x 1 root wheel 20480 Jun 2 22:00 tcprules
-rwx--x--x 1 root wheel 16384 Jun 2 22:00 tcprulescheck
It sounds like the program (owner) that is creating the cdb file doesn't
have write permission to the directory you are trying to write to.
Who (as in what user) is running tcprules? Can you run tcprules as root
successfully?
I had a heck of time getting vpopmail and tcprules working correctly for
me, ended up being a permission problem. Vpopmail has a feature where
it will automate the updating of the tcp.smtp.cdb file in real time.
--
Dale Miracle
System Administrator
Teoi Virtual Web Hosting