October
28

There are very rare times I like the RPM package management or a redhat system. But today this save my ass. Someone or something did a “chmod 777 /” on one our machines…

This normaly leads to immediate excution of this person. But anyhow I had to deal with this and recover the machine. Almost none of the system daemons startet and even a console login wasn’t possible due to wrong permissions of vital files.

The solution was a very simple shell script. The RPM database contains information about the permission of all packages. These permission can be re-applied:

#!/bin/sh -x

for package in `/bin/rpm -qa`; do/bin/rpm -qv --setperms $packagedone

So simply boot in single user mode and create this little script an run it. This should repair all the necessary permissioins.

0
April
29
0
December
11

Auf dieser Webseite gibts eine Menge Video von Voträgen schlauer Leute. Z.B.:

TED Talks: Barry Schwartz: The Paradox of Choice:
Video of a great talk by psychologist Barry Schwartz at TED.
Gefunden bei: Daring Fireball

0
October
15

Habe heute das neue Buch von Tom DeMarco & Co. bekommen. Es heißt “Adrenalin-Junkies und Formular-Zombies - Typisches Verhalten in Projekten” und handelt eben davon. Das Team um DeMarco, der mich schon mit seinem Roman “Der Termin” begeistern konnte, hat sich die Mühe gemacht und versucht verschiedene Typen von Projektteams zu kategorisieren und zu Beschreiben.

Gleich im ersten Kapitel “Adrenalin-Junkies” musste ich frappierende Ähnlichkeiten mit unserer Projektarbeit feststellen. Das muss sich ändern…

Das Buch ist leicht verständlich und kurzweilig geschrieben und bietet gute Denkanstöße. Viele Dinge werden einem bekannt vorkommen und doch ist es gut, sie mal ausformuliert vor Augen zu haben.

Ich werde nach forgeführter Lektüre berichten.

2
August
31

Man hat eine neue Maschine und möchte schnell seinen SSH-Key dort unterbringen. Das geht mit nur einmal Passwort eingeben so:


#!/bin/sh

host=$1

cat ~/.ssh/id_dsa.pub | ssh $host "(tee > ~/public.key; mkdir ~/.ssh; chmod 0700 ~/.ssh; cat ~/public.key >> ~/.ssh/authorized_keys; chmod 0600 ~/.ssh/authorized_keys )"


1
August
30

Apache 64 Bit Patch

Posted In: Klugscheissen, compi by falko

Wenn der Apache beim Compilieren auf einem 64-Bit Redhat (oder Centos oder SuSE) mault:

/usr/lib/libexpat.so: could not read symbols: File in wrong format

Dann ist dieser Patch hier anzuwenden. Der gilt für die Version httpd 2.2.4

http://blog.chaos-co.de/downloads/apr-util_2.2.4.patch

genau den Anweisungen in diesem Blogeintrag folgen:

http://blog.chaos-co.de/index.php?/archives/2-Apache-patch-for-libexpat.so-could-not-read-symbols-File-in-wrong-format.html

0