1984 – the techblog

(Hopefully) useful various sysadmin and other stuff.

fstab gone in Mac OS X — How to add mounts.

Recently, I had to add a mount entry to a rel­a­tively new Mac OS X Server instal­la­tion (Snow Leop­ard). As you may have noticed, the /etc/fstab file is gone. There is a /etc/fstab.hd, but it con­tains a stern warn­ing not to use it. Err…but where does one note mounts with­out this file? Reg­u­lar, directly attached devices […]

Setting up virtual users in vsftpd

I’ve set up a FTP server for me and my col­leagues. This was a mat­ter of honor (don’t want to go all Duke Nukem on my friends) and as a such, it had to be done cor­rectly. So, I’ve had some require­ments prior to set­ting up: It must be secure It must scale (hey, we start […]

Self-extracting shell scripts

Recently at work, I had to fig­ure out on how to trans­fer some data to sys­tems used by scripts that were exe­cuted directly on the hosts. It wasn’t that much pay­load, and I really didn’t want to be both­ered to set up a sep­a­rate filesys­tem place where to hosts rsync the data from, make sure […]

Bash: Preparing and executing commands in a variable/string

When writ­ing some shell scripts, one does often have command’s argu­ments and options pre­pared in a vari­able. Aside from the usual quo­ta­tion rules, this usu­ally works fine: > cmd=“ls –a” > $cmd . .. dir1 dir2 dir3 file1 file2 Don’t do this any­more. It only works eas­ily for sim­ple com­mands. As soon as you’ve got more complex […]

Next posts