I've got other users on my linux system - how can I 'share' the system's error_log so its readable by other users on the system?
I've got other users on my linux system - how can I 'share' the system's error_log so its readable by other users on the system?
If there is no harm in making the apache error log readable by all others on your system you
chmod o+r /var/log/apache2/error.log
/etc/logrotate.d/apache2
and look for or add a line that sayscreate 640 root adm
and change that also to something appropriate likecreate 644 root adm
.It would be less secure to put everyone in the group of the apache daemon (say
www-data
). A better option would be to use ACL's (seeman setfacl
) and allow very specific access to the file.(Paths are on a Ubuntu/Debian system).