[syslog-ng]Changing Permissions on /dev/null

Balazs Scheidler bazsi@balabit.hu
Wed, 5 Feb 2003 14:32:56 +0100


On Wed, Feb 05, 2003 at 10:52:01AM +0000, Ted_Rule@flextech.co.uk wrote:
> 
> 
> An utterly kludgy fix suggestion ....
> 
> Instead of a /dev/null 'file' destination, have a 'program' destination which
> merely runs a script to call "cat >/dev/null",
> and leave sync() settings fairly big so that the pipe isn't flushed very often.

syslog-ng can be taught not to clobber file permissions.

either this way:

destination d_thrash { file("/dev/null" perm(-1)); };

or 

options { perm(-1); };

(this last line will affect all file destinations)

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1