After upgrading to 7.51 - bug with csf.allow

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Post Reply
nospa
Junior Member
Posts: 16
Joined: 11 Aug 2011, 00:55

After upgrading to 7.51 - bug with csf.allow

Post 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
kdean
Junior Member
Posts: 12
Joined: 09 Apr 2013, 23:14

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

Post 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.
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

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

Post 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.
kdean
Junior Member
Posts: 12
Joined: 09 Apr 2013, 23:14

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

Post by kdean »

Thanks. That got rid of the error.
nospa
Junior Member
Posts: 16
Joined: 11 Aug 2011, 00:55

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

Post 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.
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

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

Post by ForumAdmin »

csf v7.53 has been released to resolve this issue:
http://blog.configserver.com
Post Reply