Date: Sun, 20 Nov 2005 22:58:19 GMT From: Rauf Kuliyev <rauf@kuliyev.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/89333: Fix the cannot create lockfile /root/.spamassassin/auto-whitelist.mutex: Permission denied error in /usr/ports/mail/spampd Message-ID: <200511202258.jAKMwJGJ018632@www.freebsd.org> Resent-Message-ID: <200511202300.jAKN0amH074873@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 89333 >Category: ports >Synopsis: Fix the cannot create lockfile /root/.spamassassin/auto-whitelist.mutex: Permission denied error in /usr/ports/mail/spampd >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Nov 20 23:00:36 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Rauf Kuliyev >Release: FreeBSD 6.0-RELEASE >Organization: Connect.az >Environment: FreeBSD horror.kuliyev.com 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 10 13:08:08 AZT 2005 root@horror.kuliyev.com:/usr/obj/usr/src/sys/C1110 i386 >Description: Allow spampd executed under non root uid to change user_directory to folder specified in passwd file when creating a Mail::SpamAssassin instance This will fix the "auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create lockfile /root/.spamassassin/auto-whitelist.mutex: Permission denied" message >How-To-Repeat: /usr/local/sbin/spampd --user=spampd --group=spampd --host 127.0.0.1:10026 --relayhost=127.0.0.1:10027 --dose --tagall --auto-whitelist >Fix: The patch: *** /usr/ports/mail/spampd.orig/files/patch-userdir Thu Jan 1 04:00:00 1970 --- /usr/ports/mail/spampd/files/patch-userdir Mon Nov 21 02:42:02 2005 *************** *** 0 **** --- 1,10 ---- + --- spampd.orig Mon Nov 21 02:41:06 2005 + +++ spampd Sun Nov 13 01:15:40 2005 + @@ -793,6 +793,7 @@ + my $assassin = Mail::SpamAssassin->new({ + 'dont_copy_prefs' => 1, + 'debug' => $debug, + + 'user_dir' => (getpwnam($user))[7], + 'local_tests_only' => $options{'local-only'} || 0 }); + + $options{'auto-whitelist'} and eval { >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511202258.jAKMwJGJ018632>