ShellShock CVE-2014-6271 pakete für Debian sarge, etch and lenny

Für all die noch ein „älteres“ Debian im Einsatz haben, habe ich die Updates für ShellShock (CVE-2014-6271) für Debian sarge, etch and lenny mal in mein repository gepackt:

echo "deb http://repository.chr.istoph.de/debian/ etch main" > /etc/apt/sources.list.d/repository.chr.istoph.de.list
wget -O - http://repository.chr.istoph.de/repository.chr.istoph.de.gpg.key |apt-key add -
apt-get update
apt-get upgrade

[UPDATE 28.09.2014]:
Mitlerweine ist auch CVE-2014-7169 gefixt und in meinem repository verhanden.

Quelle: Marco d’Itri Debian Maintainer: http://blog.bofh.it/debian/id_451

add-apt-repository unter 14.04 installiren

Um PPAs hinzuzufügen nutzt man bei Ubuntu am besten add-apt-repository. Ab Ubuntu 14.04 ist mir aber aufgefallen, dass es nicht mehr nur reicht python-software-properties zu installieren.

apt-get install python-software-properties software-properties-common

mdadm –stop

Ein Raid kann natürlich nicht gestoppt werden, wenn es noch verwendet wird. In meinem Fall:
# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdb2[1]
966994808 blocks super 1.2 [2/1] [_U]

unused devices: < none >

# mdadm --stop /dev/md0
mdadm: failed to stop array /dev/md0: Device or resource busy
Perhaps a running process, mounted filesystem or active volume group?

Eigentlich war das System nicht mehr gemountet. Nur noch das LVM war auf der Platte in Verwendung. Dafür musste ich das VG erst mal stoppen:
# vgchange -a n vg0
0 logical volume(s) in volume group "vg0" now active

Dann ging es auch mit dem Aushängen der Platte.
# mdadm --stop /dev/md0
mdadm: stopped /dev/md0

copy paste script to install and configur zabbix-agend

Für das Einrichten eines zabbix-agent habe ich mir ein Skript geschrieben, das nach der Installation die Konfigurationsdateien anpasst.

apt-get update
apt-get install zabbix-agent -y
sed -i 's/^Server=.*/Server=zabbix.chr.istoph.de/g' /etc/zabbix/zabbix_agentd.conf
sed -i 's/^Hostname=.*/Hostname='`cat /etc/hostname`'/g' /etc/zabbix/zabbix_agentd.conf
/etc/init.d/zabbix-agent restart

Fehlermeldung im auth.log

/var/log/auth.log:
lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory

Behoben habe ich dies, indem ich die Datei einfach mit den richtigen Rechten angelegt habe.
touch /var/log/lastlog
chmod 0644 /var/log/lastlog
chown root:root /var/log/lastlog