Well, I changed the banner of this site, added a “banner” with text saying “beta”.
Why? Well, all the cool sites are doing it, that’s why. Heh.
So anyways, I share space on a box in a datacenter in the CBD.
I was ICQing the guy who really owns it, and I said the following:
[15:58] Me: screw a cat. id just tail it. whatever.
Out of context, it is kinda funny.
But what I was really referring to was a bash script that I wrote to easily add a new user to our sendmail mailserver:
addMail.sh (to be run as root or sudo’d):
#! /bin/bash
## Script to easily add users to sendmail
echo Add new Username? \(y/n\)
read ADDUSER
if [ "$ADDUSER" = "y" ]; then
echo Username to add:
read USERNAME
useradd -s /bin/false -d /dev/null -c "will's email user" $USERNAME
passwd $USERNAME
fi
echo FQDN to add:
read FQDN
echo $FQDN RELAY >> /etc/mail/access
nano -w /etc/mail/access
echo $FQDN >> /etc/mail/local-host-names
nano -w /etc/mail/local-host-names
echo @$FQDN $USERNAME >> /etc/mail/virtusertable
nano -w /etc/mail/virtusertable
makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable makemap hash /etc/mail/access.db < /etc/mail/access /etc/init.d/sendmail restart
All those NANOs are there to make sure that the entry is inserted in our own labeling/grouping (ie my users, his users, other guy's users).
Whooo, dorkdom. Werd.