10

Is it feasible to define different permissions per log file, using rsyslog?

$FileCreateMode applies to all, but I want different permissions for a specific file.

yannisf
  • 577
  • 2
  • 6
  • 15

1 Answers1

12

According to the official documentation on Configuration,

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.

Nathan Smith
  • 121
  • 1
  • 1
  • 8
Håkan Lindqvist
  • 35,011
  • 5
  • 69
  • 94