procmail
[Top] [All Lists]

Re: Small CGI to manage procmail filtering via web

1999-09-21 17:35:07
On Wed, 22 Sep 1999 02:21:35 +0300, Liviu Daia 
<Liviu(_dot_)Daia(_at_)imar(_dot_)ro>
wrote:
On 23 January 1999, Stephan Zegherd <inverter(_at_)nbs(_dot_)it> wrote:
Every user should logon with username/password, then (un)check some
simple hardwired rules: the cgi then will update the .procmailrc file
in the right user directory.
I knew that I'm a bit off-topic.. but.. in your opinion what is the
best (or, more precilely, safer) solution to get the work done (apache
is running as nobody) ?
    IMHO the safer solution is: DON'T.  Don't even think about it.
In order to be able to write to an user's .procmailrc, your CGI
would need to be SUID root (or at least it should be called from a
SUID root wrapper, such as suexec).  Unless you maintained a dozen

But it doesn't have to be implemented like that. If you already have a
.procmailrc (or /etc/procmailrc) which knows where to look, the CGI
just has to update the lookup file and you won't have to touch the
"real thing" from the CGI script at all.

/* era */

Tried To: procmail-users(_at_)procmail(_dot_)org -- didn't appear, so resending.
Sorry if this eventually comes through twice.

-- 
 Too much to say to fit into this .signature anyway: <http://www.iki.fi/era/>
  Fight spam in Europe: <http://www.euro.cauce.org/> * Sign the EU petition

<Prev in Thread] Current Thread [Next in Thread>