Does anyone know how I can set the default group for /var/log/apaches/error.log to be a part of my users group each time it is created by apache?

ErrorLog ${APACHE_LOG_DIR}/error.log

This is the line in apache's configure file that creates the error.log file. I couldn't find any other references as to what ErrorLog is or how it works. If this had been a touch command or another known command I would be able to get this done pretty easily. Any ideas?

Here you find the documentation: http://httpd.apache.org/docs/2.4/logs.html

You shouldn't change permissions or the user/group that writes the logs, because from that user an attacker will be able to compromise the server. If you want to be able to read the logs then add the user to the adm group.

Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.