procmail
[Top] [All Lists]

RE: One works, other doesn't

2007-09-30 06:20:47
Tolga wrote Sunday, September 30, 2007 1:55 PM:

[Dallman Ross wrote {please don't delete attributions!}:]
[Tolga wrote:]

 I also get Error while writing to 
  
"/var/log/procmail.log" when
LOGFILE is specified in /etc/procmailrc. Please help me with
these.

Does /var/log exist?  Do you have write privileges to it?
  
I touched it as root, so its permissions were 644 before. On
http://www.ii.com/internet/robots/procmail/qs/, it says Procmail will
create a log file or mailbox using a umask of 077, so I changed log
file's permissions to 700, but I still get Error while writing to
"/var/log/procmail.log".

Don't directories need at least execute permission enabled
to be able to write files to them?  I believe that is the
case.  /var/log should be at least 500, but if a group or
user other than the owner is doing the writing (such as
after a DROPPRIV=y statement in the rcfile), then the dir
privs would need to be executable for the user or group doing
the writing.  If the file does not yet exist, then the entity
creating the file would need write perms also on the dir.
If the file already exists and is writeable by the entity,
then execute alone on the dir for that entity is enough
to change the contents of the file.

I am not a sysadmin, so don't state the following with
absolute authority.  But I would use at least 755 for /var/log/
and make sure the procmail.log therein is at least 644.
Or if it's not the owner doing the writing to the file,
then 666 or something minimally required for the user who
writes to the file.

-- 
dman
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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