Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

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.

http://www.rsyslog.com/doc/omfile.html

share|improve this answer
    
So simple! Tested, it works. Thanks! –  yannisf Mar 29 at 17:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.