diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-08-08 13:59:43 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-08-08 13:59:43 +0000 |
commit | 4459faa3799e4804402327e8fc4ea92abc96a0e1 (patch) | |
tree | 079eb0a10c3aeaaf5d1ebd2b78d4e420a537514b /doc/rsconf1_filecreatemode.html | |
parent | 7f4405ff42927df2d10fb03b3139b327b474565f (diff) | |
download | rsyslog-4459faa3799e4804402327e8fc4ea92abc96a0e1.tar.gz rsyslog-4459faa3799e4804402327e8fc4ea92abc96a0e1.tar.bz2 rsyslog-4459faa3799e4804402327e8fc4ea92abc96a0e1.zip |
somewhat improved config file doc - thanks to Florian Riedl for doing the
bulk of work
Diffstat (limited to 'doc/rsconf1_filecreatemode.html')
-rw-r--r-- | doc/rsconf1_filecreatemode.html | 35 |
1 files changed, 35 insertions, 0 deletions
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 @@ +<html> +<head> +<title>rsyslog.conf file</title> +</head> +<body> +<h2>$FileCreateMode</h2> +<p><b>Type:</b> global configuration directive</p> +<p><b>Default:</b> 0644</p> +<p><b>Description:</b></p> +<p>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.</p> +<p>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.</p> +<p>$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.</p> +<p><b>Sample:</b></p> +<p><code><b>$FileCreateMode 0600</b></code></p> +<p>This sample lets rsyslog create files with read and write access only for the users it runs under.</p> +<p>The following sample is deemed to be a complete rsyslog.conf: +<p><code><b>$umask 0000 # make sure nothing interfers with the following +definitions<br> +*.* /var/log/file-with-0644-default<br> +$FileCreateMode 0600<br> +*.* /var/log/file-with-0600<br> +$FileCreateMode 0644<br> +*.* /var/log/file-with-0644</b></code></p> +<p>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.</p> + +<p>[<a href="rsyslog_conf.html">rsyslog.conf overview</a>] [<a href="manual.html">manual +index</a>] [<a href="http://www.rsyslog.com/">rsyslog site</a>]</p> +<p><font size="2">This documentation is part of the +<a href="http://www.rsyslog.com/">rsyslog</a> project.<br> +Copyright © 2007 by <a href="http://www.gerhards.net/rainer">Rainer Gerhards</a> and +<a href="http://www.adiscon.com/">Adiscon</a>. Released under the GNU GPL +version 2 or higher.</font></p> +</body> +</html>
\ No newline at end of file |