From 4459faa3799e4804402327e8fc4ea92abc96a0e1 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 8 Aug 2007 13:59:43 +0000 Subject: somewhat improved config file doc - thanks to Florian Riedl for doing the bulk of work --- doc/rsconf1_filecreatemode.html | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 doc/rsconf1_filecreatemode.html (limited to 'doc/rsconf1_filecreatemode.html') diff --git a/doc/rsconf1_filecreatemode.html b/doc/rsconf1_filecreatemode.html new file mode 100644 index 00000000..b6498cd7 --- /dev/null +++ b/doc/rsconf1_filecreatemode.html @@ -0,0 +1,35 @@ + + +rsyslog.conf file + + +

$FileCreateMode

+

Type: global configuration directive

+

Default: 0644

+

Description:

+

The $FileCreateMode directive allows to specify the creation mode with which rsyslogd creates new files. If not specified, the value 0644 is used (which retains backward-compatibility with earlier releases). The value given must always be a 4-digit octal number, with the initial digit being zero.

+

Please note that the actual permission depend on rsyslogd's process umask. If in doubt, use "$umask 0000" right at the beginning of the configuration file to remove any restrictions.

+

$FileCreateMode may be specified multiple times. If so, it specifies the creation mode for all selector lines that follow until the next $FileCreateMode directive. Order of lines is vitally important.

+

Sample:

+

$FileCreateMode 0600

+

This sample lets rsyslog create files with read and write access only for the users it runs under.

+

The following sample is deemed to be a complete rsyslog.conf: +

$umask 0000 # make sure nothing interfers with the following +definitions
+*.* /var/log/file-with-0644-default
+$FileCreateMode 0600
+*.* /var/log/file-with-0600
+$FileCreateMode 0644
+*.* /var/log/file-with-0644

+

As you can see, open modes depend on position in the config file. Note the +first line, which is created with the hardcoded default creation mode.

+ +

[rsyslog.conf overview] [manual +index] [rsyslog site]

+

This documentation is part of the +rsyslog project.
+Copyright © 2007 by Rainer Gerhards and +Adiscon. Released under the GNU GPL +version 2 or higher.

+ + \ No newline at end of file -- cgit