#!/bin/bash # mybackupadd – Add file to ~/.mybackup file, then backup and email all # file as tar.gz to your email a/c. # # Usage : ./mybackupadd ~/public_html/ # # Copyright (C) 2004 nixCraft project # Email : http://cyberciti.biz/fb/ # Date : Aug-2004 # ————————————————————————- # This program is free software; you can redistribute it [...]
April 26th, 2013 |
admin |
#!/bin/bash # A simple shell to build and install suhosin as module for PHP under # CentOS, Fedora and RHEL / Redhat Enterprise Linux servers. # —————————————————————————- # Written by Vivek Gite <http://www.cyberciti.biz/> # (c) 2009 nixCraft under GNU GPL v2.0+ # —————————————————————————- # Home page: http://www.hardened-php.net # Last updated: 15/June/2010 # —————————————————————————- VERSION=”-${2:-0.9.31}” URL=”http://download.suhosin.org/suhosin${VERSION}.tgz” [...]
April 17th, 2013 |
admin |
Have you thought of hiding what you are doing on your linux bash shell prompt? and not allowing your colleague to see what command you are entering or do you want to confuse your colleague by showing something invisible but work as visible? then read out this… Today I came across a neat, but pointless [...]
April 16th, 2013 |
admin |
#!/bin/bash # Shell script to find all programs and scripts with setuid bit set on. # If your system ever cracked (aka hacked) then system has this kind of binary # installed; besides the normal setuuid scripts/programs # # *TIP* # User directory /home and webroots such as /www canbe mounted with # nosuid option. [...]
March 27th, 2013 |
admin |
The first time you use the Perl module CPAN, a script is executed in order to properly configure several options (like the location of tar, gzip and unzip files, the cache size for the build directory, etc). If you want to modify these configuration options at a later time, you can do it in 2 [...]
March 21st, 2013 |
admin |
Have you ever wondered why shutdown account exists on Linux server, especially under Red Hat Enterprise Linux distribution? The answer is quite simple – shutdown account can shutdown server. Here is how you can enable the shutdown account: 1) Login as a root user . 2) Setup password for the shutdown account: # passwd shutdown [...]
March 3rd, 2013 |
admin |
Many newcomers find it difficult use the find command at shell prompt under Linux / *BSD or Solairs UNIX oses. Find is nifty tool on remote server where UNIX admin can find out lot of information too. Desktop users may find handy GNOME Search tool as a utility for finding files on system. Find command [...]
February 28th, 2013 |
admin |
Linux provides a command called “history” to view the previously executed commands on shell. By default, the “history” command display only the commands that were executed but not the date and time when they were executed. To display the time OR the date when the previous commands were executed on shell, you need to set [...]
January 22nd, 2013 |
admin |
If you perform a Plesk upgrade, you may notice you are unable to unsuspend a domain from the Plesk control panel resulting in the following message: Warning: The domain is still suspended for the following reason: Domain is temporarily suspended for backing up or restoring. Looking at the message, it appears that a backup process [...]
December 10th, 2012 |
admin |
I use ADSL at home via ISP modem. As soon as my eth0 comes up I would like to have my firewall script get executed and setup the iptables firewall rules for me. Earlier, I used to type the command /root/fs.dsl.start via the sudo command. However, while reading the man page of interfaces command I [...]