Mike, > I need a user other than amavisd or root to be able to release messages > from quarantine. This user has been added to my amavis group, but the > permissions on the amavisd.sock file don't allow group writes. As a > result when this user runs amavisd-release they get an error. > > I can manually chmod the file to give it group write persmissions and it > works fine, but as soon as I restart amavisd-new it gets recreated with > the old permissions and it breaks again. Anybody got any insight on > making this file get created with group-write permissions each time? Or > any suggestion on an alternative release procedure would be welcome too.
Creation of socket is in the hands of Net::Server. Try the following change (patch against 2.4.2, but should apply to other versions as well): --- amavisd.orig Tue Jun 27 13:31:56 2006 +++ amavisd Fri Sep 29 12:43:33 2006 @@ -6869,2 +6869,7 @@ ### Net::Server hook +sub post_bind_hook { + umask(0027); +} + +### Net::Server hook ### This hook occurs in the parent (master) process after chroot, @@ -9661,2 +9666,3 @@ $0 = 'amavisd (master)'; +umask(0007); # affect protection of Unix sockets created by Net::Server $server->run; # transfer control to Net::Server Mark ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/