Setting permissions on log files
With the 'file' destination, Syslog-ng modifies the ownership and permissions of the file when it opens it. There are configuration file options to choose what it sets them to, but AFAICT, no way to have Syslog-ng just leave the files as it finds them. I prefer to maintain permissions and ownership separately; I set them when I create the file and expect them to stick. Could there be a configuration file option for that? -- Bryan Henderson San Jose, California
On Mon, 2007-02-19 at 01:45 +0000, Bryan Henderson wrote:
With the 'file' destination, Syslog-ng modifies the ownership and permissions of the file when it opens it. There are configuration file options to choose what it sets them to, but AFAICT, no way to have Syslog-ng just leave the files as it finds them.
I prefer to maintain permissions and ownership separately; I set them when I create the file and expect them to stick. Could there be a configuration file option for that?
IIRC, you can use -1 for various options, which means "do not touch". But I would need to test it. The code in the C part is there, the only question that remains whether the parser accepts "-1" in the place of owner/group/permissions. -- Bazsi
participants (2)
-
Balazs Scheidler
-
bryanh@giraffe-data.com