Page 1 of 1

restrict_syslog not reverting

Posted: 08 May 2020, 10:13
by Progressed
Hi,

I set the setting to 3 but found out some logs were not writing any more so wnted to do more research on which user needs the rights to write to LOG_AUTH (for example). So based on the docs reverting should be easy:

Code: Select all

If you want to revert RESTRICT_SYSLOG to another option and disable this
feature, change the setting of RESTRICT_SYSLOG and then restart lfd and then
syslog/rsyslog and the unix sockets will be reset
Unfortunatly settings werent reverted and setting it to 0 or 2 logwriting to certain files only honours the users within /etc/csf/csf.syslogusers.

Im hoping somebody else also has this problem and perhaps resolved it?!

Im running ubuntu 18.04 and CSF 14.02 BTW

Re: restrict_syslog not reverting

Posted: 08 May 2020, 11:31
by ForumAdmin
You may have to reset the permissions on /dev/log, usually you can do:

Code: Select all

chmod 666 /dev/log
chown root:root /dev/log
this should result in:

Code: Select all

# ls -la /dev/log
srw-rw-rw- 1 root root 0 May  8 11:22 /dev/log

Re: restrict_syslog not reverting

Posted: 08 May 2020, 12:02
by Progressed
Even though nothing has changed it did the trick! awesome!

I do advice it to put it somewhere in troubleshooting area or some sort.