syslog-ng read file permission denied

不想你离开。 提交于 2019-12-11 00:19:01

问题


i need to send tomcat Catalina.out log content by Syslog-ng but but after restarting Syslog service ,it gets permission denied error

so how can i give a read access to Syslog-ng for read from CATALINA.out ? "tomcat directory belongs to specific user and specific group so cannot be change."


回答1:


it's possible that your Selinux/apparmor profile doesn't allow syslog-ng to access the file. See this blogpost for tips: https://syslog-ng.com/blog/using-syslog-ng-with-selinux-in-enforcing-mode/




回答2:


i have found my problem in /etc/apparmor.d/sbin.syslong-ng,,,,after editing and insert new permission to profile. command # apparmor_parser -r /etc/apparmor.d/profile.name reloads profile



来源:https://stackoverflow.com/questions/49025983/syslog-ng-read-file-permission-denied

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!