Tag archive for ‘file’

Script to email failed Ftp login attempts

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 [...]

Linux : How to export public key for others/friends or your recipients

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 [...]

Lighttpd mod_rrdtool: Monitor The Load, Requests Per Seconds and Traffic

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 [...]

Linux or Unix find and remove files with one find command

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 archives and compressed files?

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– [...]

Script to terminate suspended accounts on a cPanel server

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 [...]

5 Useful Tools to Access Linux Partition from Windows

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 [...]

DirectAdmin with mod_fcgid

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. [...]

Not allowed to add any more than (0) addon domains!

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. [...]

CentOS / Redhat: Protect Yum Repo’s Packages

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 [...]

Enter your email address:

Liên Kết Website

web design | Shared linux windows problems | Dedicated server | website chất lượng cao | hosting chất lượng cao | Tutorial video collection | Troubleshooting Tips and Tutorial