Archive for the ‘Server Problems’ Category

warning: updatedb: Could not find the group: slocate in the /etc/group file.

Wednesday, July 30th, 2008

slocate.cron:

warning: updatedb: Could not find the group: slocate in the /etc/group file.
fatal error: This is a result of the group missing or a corrupted group file.

well the problem is that the group slocate is missing from the group file.

let’s see what’s in the file:

pico /etc/cron.daily/slocate.cron

#!/bin/sh
. /etc/updatedb.conf
[ "$DAILY_UPDATE" != "yes" ] && exit 0
renice +19 -p $$ >/dev/null 2>&1
/usr/bin/updatedb

CTR+X to exit

how about the group file:

pico /etc/group

root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
tty:x:5:
disk:x:6:root
lp:x:7:daemon,lp
mem:x:8:
kmem:x:9:
mail:x:12:mail
…….

CTR+X to exit

do this:

ls -l `which slocate`

root 21 35745 Aug 9 2005 /usr/bin/slocate*

pico /etc/group

go to the end of the file;

slocate:x:35745:

CTR+X to exit and answer yes

now type :

updatedb

wait a few moments and no errors!

Apf Lockdown

Thursday, July 24th, 2008

This is not working?

Somebody here got any tips or tricks?
Thank allot for your time.

WHM cpanel will flush the iptables!

https://YOURSERVERIP/scripts2/doautofixer?autofix=iptablesflush

Well now I’ve locked myself out of the box with APF!
I have kinda disabled all ports that’s accesable like this:
deny_hosts.rules

#ftp
tcp:in:d=21:s=0/0
#ssh
tcp:in:d=22:s=0/0
#smtp
#tcp:in:d=25:s=0/0
…….
out:d=21:d=0/0
out:d=22:d=0/0
……

But I have WHM and CPANEL acces, there I can upload files and modify website files or change configuration of the webserver.

I need to find out how to stop APF from inside the WHM or cpanel.
Is this possible? I have looked for a few hours now it’s not possible I think.

Now I try to upload an php or perl code and accesing the website to apf-f and remove the cronjob.
But does it work?

system(“apf -f”);
exec(‘apf -f’);
?>

This is not working?

Somebody here got any tips or tricks?
Thank allot for your time.

WHM cpanel will flush the iptables!

https://YOURSERVERIP/scripts2/doautofixer?autofix=iptablesflush

Well now I’ve locked myself out of the box with APF!
I have kinda disabled all ports that’s accesable like this:
deny_hosts.rules

#ftp
tcp:in:d=21:s=0/0
#ssh
tcp:in:d=22:s=0/0
#smtp
#tcp:in:d=25:s=0/0
…….
out:d=21:d=0/0
out:d=22:d=0/0
……

But I have WHM and CPANEL acces, there I can upload files and modify website files or change configuration of the webserver.

I need to find out how to stop APF from inside the WHM or cpanel.
Is this possible? I have looked for a few hours now it’s not possible I think.

Now I try to upload an php or perl code and accesing the website to apf-f and remove the cronjob.
But does it work?

<?
system(“apf -f”);
exec(‘apf -f’);
?>

This is not working?

Somebody here got any tips or tricks?
Thank allot for your time.

The solution from cpanel support team:
WHM cpanel will flush the iptables!

https://YOURSERVERIP/scripts2/doautofixer?autofix=iptablesflush