This is a slightly more detailed post than usual, based on bitter experience. How do you recover when you've accidentally deleted all the files in your /etc/ directory? Here's how. Backup, rescue CD, tar, gzip, scp, rpm --verify, done.
I’m mainly writing this to document some tentative steps that I’ve taken to secure a CentOS server. The server is used for a LAMP-based application with a really predictable URL. The box gets probed a lot. If you have additional questions or comments, please post a comment. Step 1: Turn on the host firewall...
Crontab is the venerable task scheduler for Unix-derived systems. To schedule tasks, you configure a table of entries that occur in some sort of chronological fashion, hence “crontab”. Image via Wikipedia To set up a crontab entry, enter crontab -e at the shell prompt. This will bring up an entirely blank screen in vim,...
This goes over to the right of the geek-o-meter. I’ve been swimming virtualization lately: openvz, VirtualBox, and most recently, Amazon’s S3/EBS/EC2. For quick test projects, I really like VirtualBox running on my mac. However, I ran into a small hiccup: I needed to have a NAT’ed RedHat box running inside of VB. I need...
If mail to a mailman mailing list subscriber bounces too many times, further deliveries to that address are suspended. It’s often useful to track down these addresses. # cd /usr/local/mailman/bin/# for i in `./list_lists -b`; do echo : $i : >>/tmp/bounced.txt;./list_members –fullnames –nomail=bybounce $i >>/tmp/bounced.txt;done The contents of the file will look like this:...
We run sendmail as our MTA and mailman as our list management solution. This is a script that we use to manage updates for mailman aliases. It leverages the built-in mailman command “genaliases” which will regenerate sendmail-style aliases for all of the lists on the system. 1 2 3 4 5 6 7 8...