ports/57312: trouble running mail/getmail from cron

Alex de Kruijff freebsd at akruijff.dds.nl
Sun Sep 28 12:20:29 UTC 2003


>Number:         57312
>Category:       ports
>Synopsis:       trouble running mail/getmail from cron
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 28 05:20:22 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Alex de Kruijff
>Release:        FreeBSD 4.8-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD Intranet.lan 4.8-RELEASE-p4 FreeBSD 4.8-RELEASE-p4 #0: Tue Sep 2 13:34:29 CEST 2003 root at Intranet.lan:/usr/obj/usr/src/sys/INTRANET i386


	
>Description:
	I follow up on the PR 53843. In this way I hope to provide a better 
	work around and information than the original PR. Please close it
	if its still open

	http://www.freebsd.org/cgi/query-pr.cgi?pr=53843

	Getamil use to work from cron. After is have updated my sources on 
	26/27 jun 2003 it stopped working. The reason is that getmail now 
	uses something recuireing a path to be availble. (Concluding from
	the workaround) 

	Pyton version: 2.3.1
	Getmail version: 3.1.7
	The error message: "exec: : permission denied"

>How-To-Repeat:
	- Use the code after 27 jun for both the FreeBSD system as the ports
	- Remove all extra enviorment lines in the crontab.
	- Run getmail from cron

>Fix:

You can add these two lines you your crontab as a work around:
SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin

This does, in my view, open up the potential to securtiy problems because 
the PATH applies to all cron entries.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list