From nobody@FreeBSD.org  Wed Jul 18 15:03:30 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 5BD9916A406
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Jul 2007 15:03:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (groups.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 3236613C481
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Jul 2007 15:03:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l6IF3TFw022662
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Jul 2007 15:03:29 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l6IF3TsQ022655;
	Wed, 18 Jul 2007 15:03:29 GMT
	(envelope-from nobody)
Message-Id: <200707181503.l6IF3TsQ022655@www.freebsd.org>
Date: Wed, 18 Jul 2007 15:03:29 GMT
From: Graham Menhennitt <graham@menhennitt.com.au>
To: freebsd-gnats-submit@FreeBSD.org
Subject: fetchmail_user ignored
X-Send-Pr-Version: www-3.0

>Number:         114701
>Category:       ports
>Synopsis:       mail/fetchmail - fetchmail_user ignored
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    barner
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 18 15:10:01 GMT 2007
>Closed-Date:    Sun Jul 22 11:25:59 GMT 2007
>Last-Modified:  Sun Jul 22 11:30:01 GMT 2007
>Originator:     Graham Menhennitt
>Release:        6.2-STABLE
>Organization:
>Environment:
>Description:
The startup script for the fetchmail port describes the use of a variable fetchmail_user (when running as a system-wide daemon). However, the value that is assigned to that variable in /etc/rc.conf is never used.
>How-To-Repeat:
In /etc/rc.conf:
  fetchmail_enable="YES"
  fetchmail_user=someuser

Then run
  /usr/local/etc/rc.d/fetchmail start

Using "ps axu", observe that the fetchmail process is owned by user fetcmail rather than someuser.
>Fix:


>Release-Note:
>Audit-Trail:

From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= <bkoenig@alpha-tierchen.de>
To: bug-followup@FreeBSD.org, graham@menhennitt.com.au
Cc:  
Subject: Re: ports/114701: fetchmail_user ignored
Date: Wed, 18 Jul 2007 19:38:43 +0200 (CEST)

 The fetchmail_user variable is intended for a multiuser setup where all
 users that are listed in fetchmail_users can start fetchmail with their
 own configuration file (default: /home/<username>/.fetchmailrc).
 
 If you use a single global configuration file (e.g.
 /usr/local/etc/fetchmailrc) then the hardcoded daemon user "fetchmail"
 will be used the rc script. fetchmail_user won't change it.
 
Responsible-Changed-From-To: freebsd-ports-bugs->barner 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Jul 18 21:58:24 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

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

From: Graham Menhennitt <graham@menhennitt.com.au>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/114701: fetchmail_user ignored
Date: Thu, 19 Jul 2007 07:46:04 +1000

 That may be the intention, but the comments at the top of the startup
 script say that it's used in the system-wide daemon case and not the one
 with multiple users.
 
 And surely in the per-user case, each user's instance of fetchmail
 should run as that particular user. Hang on..., I've just checked. If
 fetchmail_users is set to "aaa bbb", and fetchmail_user set to "ccc",
 then the two instances of fetchmail are run as "aaa" and "bbb"
 respectively. So it's not used in that case either!
 
 Graham

From: Simon Barner <barner@FreeBSD.org>
To: bug-followup@FreeBSD.org, graham@menhennitt.com.au,
	bkoenig@alpha-tierchen.de
Cc:  
Subject: Re: ports/114701: fetchmail_user ignored
Date: Fri, 20 Jul 2007 16:44:36 +0200

 >  That may be the intention, but the comments at the top of the startup
 >  script say that it's used in the system-wide daemon case and not the one
 >  with multiple users.
 
 Yes, that is the intendet behaviour. In the system-wide daemon case the
 fetchmail_user variable should be used (with default value 'fetchmail').
 >  
 >  And surely in the per-user case, each user's instance of fetchmail
 >  should run as that particular user. Hang on..., I've just checked. If
 >  fetchmail_users is set to "aaa bbb", and fetchmail_user set to "ccc",
 >  then the two instances of fetchmail are run as "aaa" and "bbb"
 >  respectively. So it's not used in that case either!
 
 This is exspected. The fetchmail_user variable is ignored in the per-user
 configuration.
 
 I'll fix the single-daemon case to actually use the custom user and improve
 the documentation in that the fetchmail_user variable is ignored in the
 per-user case.
State-Changed-From-To: open->closed 
State-Changed-By: barner 
State-Changed-When: Sun Jul 22 11:25:57 UTC 2007 
State-Changed-Why:  
Fixed in fetchmail-6.3.8_3. Thanks for the report. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/114701: commit references a PR
Date: Sun, 22 Jul 2007 11:20:26 +0000 (UTC)

 barner      2007-07-22 11:20:19 UTC
 
   FreeBSD ports repository
 
   Modified files:
     mail/fetchmail       Makefile 
     mail/fetchmail/files fetchmail.in 
   Log:
   - Actually respect the `fetchmail_user' variable in single daemon
     mode
   - Document that above variable is ignored in the per-user daemon mode
   - Bump port revision
   
   Requested by:   Graham Menhennitt <graham@menhennitt.com.au>
   PR:             ports/114701
   
   Revision  Changes    Path
   1.187     +1 -1      ports/mail/fetchmail/Makefile
   1.8       +6 -2      ports/mail/fetchmail/files/fetchmail.in
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
