# fileCreateMode

Sets permissions for the output file when it is created.

This parameter applies to omprog: Program integration Output module.

Name:

  fileCreateMode

Scope:

  action

Type:

  string

Default:

  action=0600

Required?:

  no

Introduced:

  v8.38.0

## Description

Permissions the output file will be created with, in case the file does not exist. The value must be a 4-digit octal number, with the initial digit being zero. Please note that the actual permission depends on the rsyslogd process umask. If in doubt, use `$umask 0000` right at the beginning of the configuration file to remove any restrictions.

## Action usage

    action(type="omprog"
           output="/var/log/prog.log"
           fileCreateMode="0640")

## See also

See also omprog: Program integration Output module.

Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.