Each entry has the displayed text (item) and the command to be executed (cmd). This first script only uses the item text to display a list of commands that may be executed:
Read more »Executing Local Shell Commands on the Web
Creating and Using a Custom Perl Library
Security with HTTP Authentication
You probably don't want to allow open access to certain parts of your web interface. In many cases, you may want to restrict access to everything. HTTP gives basic authentication support that is compatible with all browsers and is easy to use.
Read more »Defining Interface Specifications
When I create a user interface, I like to make sure it is flexible and expandable. Although I could just hard-code the exact functionality I need at the moment, it is better in the long term to define the interface using a configuration file (as much as possible).
Read more »Creating the Underlying Working Scripts
The underlying scripts are the actual commands that make changes to your systems. For all of your automation tasks, it is a good idea to do the dirty work with command-line programs. They may be bash or Perl scripts, as long as they do not require direct user interaction.
Read more »Excluding Files When Using rdiff-backup
A wide variety of command-line options allows you to control which files are included in the backup process. Here are the ones more commonly used:
Read more »Creating Incremental Backups with rdiff-backup
You can run the script as often as you like. I would suggest running it once per day. If the data is very important (like a corporate CVS repository), running it once per hour wouldn't be unreasonable.
Read more »Basic Backups with rsync
You can perform basic complete backups with rsync just like with cfengine. Here is an example shell script that can be executed on a daily basis on each of your systems:
Read more »Defining a Tripwire Rule
Defining a rule is simple. With an appropriate rule, Tripwire can monitor any file on your system in any way you want. As an example, consider a common file for an attacker to modify –/bin/login. This program can be replaced with a version that logs the users' passwords to be used by the attacker at some future time.
Read more »Firewall Configuration Script
Here is a nice generic script that you can use to create a simple firewall on each of your systems. It is great for single systems with only one network interface.
Read more »
