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.

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.

Regards.

share|improve this question
add comment

1 Answer 1

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
add comment

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.