Page 1 of 1

After upgrading to 7.51 - bug with csf.allow

Posted: 01 Oct 2014, 12:30
by nospa
I've found that after upgrading to CSF 7.51, if /etc/resolv.conf is chattr +i - I'm unable to use csf.allow entries.

I also get this error when restarting csf:

*Error* Unable to open [/etc/resolv.conf]: Permission denied at /usr/sbin/csf line 838

Re: After upgrading to 7.51 - bug with csf.allow

Posted: 01 Oct 2014, 14:57
by kdean
I'm seeing the same error since my resolv.conf is also immutable. What issue are you having with the csf.allow entries? Just wondering if I'm having a problem there as well.

Re: After upgrading to 7.51 - bug with csf.allow

Posted: 01 Oct 2014, 15:25
by ForumAdmin
If you modify /usr/local/csf/lib/ConfigServer/Slurp.pm and change line 31 from:

Code: Select all

sysopen (FILE, $file, O_RDWR) or croak "*Error* Unable to open [$file]: $!";
to:

Code: Select all

sysopen (FILE, $file, O_RDONLY) or croak "*Error* Unable to open [$file]: $!";
You should then be fine.

Re: After upgrading to 7.51 - bug with csf.allow

Posted: 01 Oct 2014, 15:27
by kdean
Thanks. That got rid of the error.

Re: After upgrading to 7.51 - bug with csf.allow

Posted: 01 Oct 2014, 16:29
by nospa
My problem was bigger - I've put in csf.allow entries to allow ssh access to my server only from certain IPs, after upgrade - I was unable to ssh into my server, even to access csf and stop it! I need to ask for kvm in my datacenter to solve this problem. This should be fixed asap in next release of csf/lfd.

Re: After upgrading to 7.51 - bug with csf.allow

Posted: 01 Oct 2014, 16:46
by ForumAdmin
csf v7.53 has been released to resolve this issue:
http://blog.configserver.com