Could not open /etc/crontab - CSF

sss638

New member
Joined
Mar 8, 2013
Messages
9
Hello everyone

Actually i have a problem with csf and its "Could not open /etc/crontab: No such file or directory at /usr/sbin/csf line 2190." when i want to start csf it shows me "Firewall Status: Enabled but Stopped" and i checked line 2190 and i saw this code :

Code:
open (CRONTAB, "<","/etc/crontab") or die "Could not open /etc/crontab: $!";

Please give me a answer because i didn't find anything on Google. :eek:
 
Hello,

And do you really have no /etc/crontab?

And what do you see when do

Code:
/etc/init.d/csf restart
?
 
Hi

Hi

Thanks for your replay

No i don't have this file.
and it shows me
Code:
WARNING: This script should ONLY be used by the init process. To restart csf use the CLI command 'csf -r'

Stopping csf:(saving iptables) (saving ip6tables)          [  OK  ]

Starting csf:(restoring iptables) (restoring ip6tables)    [  OK  ]
 
Well, and do you have a crontab installed? What OS are your running: Debian/Ubuntu, CentOS?

And what do you see when running:

Code:
csf -l
?

By the way what do you see when do:

Code:
perl /etc/csf/csftest.pl
?
 
I have centOS 6.3 on vmware

it shows me :
Code:
Chain INPUT (policy ACCEPT 204 packets, 14085 bytes)
num   pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
num   pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 195 packets, 46894 bytes)
num   pkts bytes target     prot opt in     out     source               destination

Chain PREROUTING (policy ACCEPT 106 packets, 7167 bytes)
num   pkts bytes target     prot opt in     out     source               destination

Chain POSTROUTING (policy ACCEPT 2 packets, 126 bytes)
num   pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 2 packets, 126 bytes)
num   pkts bytes target     prot opt in     out     source               destination
 
perl /etc/csf/csftest.pl

and

Code:
Testing ip_tables/iptable_filter...OK
Testing ipt_LOG...OK
Testing ipt_multiport/xt_multiport...OK
Testing ipt_REJECT...OK
Testing ipt_state/xt_state...OK
Testing ipt_limit/xt_limit...OK
Testing ipt_recent...OK
Testing xt_connlimit...OK
Testing ipt_owner/xt_owner...OK
Testing iptable_nat/ipt_REDIRECT...OK
Testing iptable_nat/ipt_DNAT...OK

RESULT: csf should function on this server
 
actually when i want to run this code " yum -y install crontabs cronie cronie-anacron "


Code:
--> Finished Dependency Resolution
Error: Package: 2:postfix-2.6.6-2.2.el6_1.i686 (base)
           Requires: libmysqlclient.so.16
Error: Package: 2:postfix-2.6.6-2.2.el6_1.i686 (base)
           Requires: mysql-libs
Error: Package: 2:postfix-2.6.6-2.2.el6_1.i686 (base)
           Requires: libmysqlclient.so.16(libmysqlclient_16)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
 
Its ok right now but i have another problem and its i think i dont have any sql on my vps

"Error connecting to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'"

Thanks
 
Back
Top