[Mimedefang] Clamd patch for errors; file permissions
Kenneth Porter
shiva at sewingwitch.com
Wed Mar 10 21:52:09 EST 2004
--On Tuesday, March 09, 2004 12:31 PM -0500 "David F. Skoll"
<dfs at roaringpenguin.com> wrote:
>> I've installed 2.40, but I'm still seeing the following permissions in the
>> directories created under /var/spool/MIMEDefang:
>
>> drwx------ 3 defang defang 1.0k Mar 8 08:07
>> mdefang-i28E7u5D008574
>
> Mea culpa. :-( It's a bug. Fixed in CVS.
The %post looks right, but I don't see my changes in the %files section. That
means that rpm -V shows mismatches on the directory ownership and mode.
Ideally the ownership and mode should be set up in %files, not in %post, but
of course that won't work on a first-time install since the defang user
doesn't exist, so you need both. Here's what I think needs to be in %files:
%attr(750,%{user},%{user}) %dir %{dir_spool}
%attr(755,%{user},%{user}) %dir %{dir_log}
%attr(750,%{user},%{user}) %dir %{dir_quarantine}
More information about the MIMEDefang
mailing list