Month: September 2011

Access

Blog History

Securing SSH

Looking at my auth.log on an internet accessible server. I notice that there has been 3071 unsuccesful login attempts since last the logs rotated. cat /var/log/auth.log | grep invalid | grep ssh | wc 3071 49136 327541 # does any one know how to match two arguments...

read more

Hard Disk Partitioning Fail

Just had a situation where I ran palimpsest and tried to carve another partition onto a 2TB disk which I had only put a single 500GB partition on. To cut a long story short I ended up losing the current partition on the disk which was also my /home. So not fun. In the...

read more

Rackspace Cloud Server a Good Move

So I've been running on the Rackspace cloud for a week or so. The server stays up: w 22:45:08 up 4 days, 17:23, 1 user, load average: 0.34, 0.10, 0.10 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 cpe-XXX-XXX-XXX- 22:45 0.00s 0.01s 0.00s w And it uses memory but...

read more

mod_security2 sigh

Good Concept Just be prepared for head scratching I had a post with this as the URL /it-tips/getting-screenshots-working-the-way-i-like-in-lxde couldn't access with mod_security running. The reason it didn't like the word "like" in the Permalink tag. So I've changed...

read more

pidof

This will seem really simple to those that know about these things, but hey I'm easily amused. Here is a snippet from an /etc/init.d script HTTPD=/httpd/bin/httpd PIDFILE=/httpd/logs/httpd.pid if pidof $HTTPD | tr ' ' '\n' | grep -w $(cat $PIDFILE); then return 0 fi...

read more