ports/154437: mail/nullmailer: permission problems on trigger, queue and tmp

Uffe Jakobsen uffe at uffe.org
Tue Feb 1 13:20:07 UTC 2011


>Number:         154437
>Category:       ports
>Synopsis:       mail/nullmailer: permission problems on trigger, queue and tmp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 01 13:20:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Uffe Jakobsen
>Release:        8.2-RC2
>Organization:
>Environment:
FreeBSD freebsd1 8.2-RC2 FreeBSD 8.2-RC2 #0: Wed Jan 12 17:26:33 UTC 2011     root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
mail/nullmailer: permission problems on trigger, queue and tmp

I installed the nullmailer-1.05 binary package 

The  following dirs queue, tmp and the (fifo)file trigger are owned by root - thus preventing nullmailer from working.


/var/spool/nullmailer/queue/
/var/spool/nullmailer/tmp/
/var/spool/nullmailer/trigger


>How-To-Repeat:
just install nullmailer and try to use it.
>Fix:
patch to ports files attached

Patch attached with submission follows:

? nullmailer.diff.patch
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/nullmailer/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- Makefile	15 Apr 2010 15:35:05 -0000	1.20
+++ Makefile	1 Feb 2011 12:33:55 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	nullmailer
 PORTVERSION=	1.05
-PORTREVISION=	1
+PORTREVISION=	2
 PORTEPOCH=	1
 CATEGORIES=	mail
 MASTER_SITES=	http://untroubled.org/nullmailer/ \
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/mail/nullmailer/pkg-plist,v
retrieving revision 1.7
diff -u -r1.7 pkg-plist
--- pkg-plist	15 Jul 2009 05:33:14 -0000	1.7
+++ pkg-plist	1 Feb 2011 12:33:55 -0000
@@ -9,12 +9,14 @@
 etc/nullmailer/remotes.sample
 @exec mkdir -p %%LOCALSTATEDIR%%/nullmailer/queue
 @exec chmod 700 %%LOCALSTATEDIR%%/nullmailer/queue
+ at exec chown nullmail:nullmail %%LOCALSTATEDIR%%/nullmailer/queue
 @exec mkdir -p %%LOCALSTATEDIR%%/nullmailer/tmp
 @exec chmod 700 %%LOCALSTATEDIR%%/nullmailer/tmp
+ at exec chown nullmail:nullmail %%LOCALSTATEDIR%%/nullmailer/tmp
 @exec rm -f %%LOCALSTATEDIR%%/nullmailer/trigger
 @exec mkfifo %%LOCALSTATEDIR%%/nullmailer/trigger
 @exec chmod 600 %%LOCALSTATEDIR%%/nullmailer/trigger
- at exec chown -R nullmail %%LOCALSTATEDIR%%/nullmailer/*
+ at exec chown nullmail:nullmail %%LOCALSTATEDIR%%/nullmailer/trigger
 @exec chown nullmail %D/sbin/nullmailer-queue
 @exec chmod u+s %D/sbin/nullmailer-queue
 @exec chown nullmail %D/libexec/nullmailer/mailq


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list