Category Archives: Linux Post

Linux Post

Deleting files older then N days

Hello, If you have a lot of files and you want to delete a couple of them older then N days. You can use next command

this will find files in map /somewhere files older then 10 days.

Also posted in CentOS, OS's, Scripting | Leave a comment

Shell script to copy data from lftp and dump/restore mysql

If you need to copy any data from remote ftp backup space using lftp you can use next script

   

Posted in Linux Post | Leave a comment

How to change permissions on files and directories on Linux

Use next commands

This will change permissions in all folder and sub folderts to 755

This will change file permissions to 644

Also posted in Scripting | Leave a comment

Shell script to reset ebtables on Linux

Ebtables is an application program used to set up and maintain the tables of rules (inside the Linux kernel) that inspect Ethernet frames. It is analogous to the iptables application, but less complicated, due to the fact that the Ethernet protocol is much simpler than the IP protocol. ebtables used with bridges on Linux. The […]

Also posted in Debian, Firewall, Scripting, Ubuntu | Leave a comment

Add new rbl to exim on cPanel server

Exim config. manager in  cPanel, allow us to work only with two rbl list, spamhaus.org и spamcop.net. If you want to add additional RBL list such as dnsbl.njabl.org, list.dsbl.org or dul.dnsbl.sorbs.net, you need to do next 1) Move to directory /usr/local/cpanel/etc/exim/acls/ACL_RBL_BLOCK

2) Make a backup of of the next file

3) Open with nano this file spamhaus_spamcop_cannibal_rbl 4) Change adress […]

Also posted in Hosting | Leave a comment