[Esd-l] Strange log entries

John D. Hardin jhardin at impsec.org
Fri Aug 1 13:37:50 PDT 2003


On Fri, 1 Aug 2003, Mark Wendt wrote:

> /usr/bin/sh: /var/log/sanitizer/procmail.log: cannot create
> procmail: Program failure (1) of " perl -p -e ' #\
> 
> Not sure why the shell is complaining about creating the log file,
> it already exists, and stuff is being written to it.

Check the permissions on the log file and on the directory path to it.
Whichever user is logging the error does not have permission to write
to it.

The simplest recommended situation is rw--w--w- root:root, but then
anybody can overwrite the log.

An alternative is to log to (say) $HOME/procmail.log (per-user
logfiles) and use logrotate to manage the log files.

--
 John Hardin KA7OHZ    ICQ#15735746    http://www.impsec.org/~jhardin/
 jhardin at impsec.org                        pgpk -a jhardin at impsec.org
 key: 0xB8732E79 - 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  ...the Fates notice those who buy chainsaws...
                                              -- www.darwinawards.com
-----------------------------------------------------------------------
   92 days until Matrix Revolutions



More information about the esd-l mailing list