Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have setup a CentOS 6.3 box to collect logs from a few devices, I have log rotation setup for each host. Basically It rotates the log file by Year, Month, Day and the Host.

Everything works great except it seems the Rsyslog daemon creates the files/folders with root:root owner & group. I then can't navigate into the day folder e.g 06, 07, 08 without changing the permissions first.

I can navigate with root of course but this isn't ideal.

Is there a way to get the Rsyslog Daemon to create the folders with a specific group (sysadmin) that my user is apart of.


share|improve this question
up vote 1 down vote accepted

Use the configuration directives $DirGroup, $DirUser, $FileGroup and $FileUser to set the user and group ID you want for newly created directories and files, respectively.

share|improve this answer

Your Answer


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.