June 12th, 2013 |
admin |
Shell Script to search Failed Ftp Login Attempts This Shell script will search the server logs on daily basis and will email you the Failed Ftp Login Attempts of the day. The ftp logs are saved in the /var/log/messages file as by default there is no separate log file for Ftp in Linux. Create a [...]
June 12th, 2013 |
admin |
1) Login to your shell account 2) Use –export option to export your public key in text file $ gpg –export –a > my.key OR $ gpg –export -a | mail -s “My key” friend@domain.com Where -a –armor : Create ASCII armored output. –export : Export the key for sharing First command write output to [...]
June 10th, 2013 |
admin |
The round-robin database tool aims to handle time-series data like network bandwidth, temperatures, CPU load etc. The data gets stored in round-robin database so that system storage footprint remains constant over time. Lighttpd comes with mod_rrdtool to monitor the server load and other details. This is useful for debugging and tuning lighttpd / fastcgi server [...]
Q. How do I find and delete files under Linux / UNIX operating systems? A. Some time it is necessary to find out files and remove them. However, rm command does not support search criteria. However, with find command you can search for files in a directory and remove them on fly. You need to [...]
How to create a .tar, .tar.gz and .tar.bz2 file? # tar -cf example.tar example # tar -zcf example.tar.gz example # tar -jcf example.tar.bz2 example root@server [~]# ll drwxr-xr-x 2 root root 4096 Dec 6 07:02 example/ -rw-r–r– 1 root root 30720 Dec 6 08:11 example.tar -rw-r–r– 1 root root 912 Dec 6 08:11 example.tar.bz2 -rw-r–r– [...]
How to check suspended accounts on a cPanel server and terminate them after a specific time frame? Many a times you suspend an account on the server and it goes unnoticed for months thus wasting disk space of your server. You can use the following script and schedule it to execute, say once in a [...]
Explore2fs Explore2fs is a GUI explorer tool for accessing ext2 and ext3 filesystems. It runs under all versions of Windows and can read almost any ext2 and ext3 filesystem. Download From Here Latest Version : 1.7 Size : 380 KB Ext2 Installable File System For Windows (Ext2IFS) It provides Windows NT4.0/2000/XP/2003/Vista/2008 with full access to [...]
All steps below should be done with a new clean install of DirectAdmin. It is possible to make it work on the server that already have users on it. I did that and it works perfectly fine. However, the steps will be a bit different and it won’t work if you just follow instruction below. [...]
Error: There was a problem creating the addondomain. Sorry, you are not allowed to add any more than (0) addon domains! The domain below was not setup. Reason: The domain is not allowed to host any add-on domains on it and the addon domain resources are set to zero by the administrator of the server. [...]
How do I protect my yum repo’s packages from certain repositories getting replaced / updated via yum command itself under CentOS / RHEL / Redhat Enterprise Linux? You need to install the yum-protectbase plugin package: This plugin allows certain repositories to be protected. Packages in the protected repositories can’t be overridden by packages in non-protected [...]