VSFTPD Monitoring

Der vsftpd arbeitet in der Ausgangskonfiguration von Fedora sehr schweigsam. Logwatch schickt einen zwar die wichtigsten Informationen wie fehlgeschlagene Login-Versuche und Transfervolumen, wer aber mehr wissen will, muß etwas Hand anlegen. Ich möchte vorallem wissen, was der vsftpd jetzt macht und nicht, was er gestern gemacht hat. Also habe ich zur /etc/vsftpd/vsftpd.conf die folgenden beiden Zeilen hinzugefügt:

session_support=YES
setproctitle_enable=YES

Die erste Zeile aktiviert den Session-Support, also Logging in /var/log/wtmp. Jetzt tauchen die letzen Sessions auch im Output des last-Befehls auf.

Die zweite Zeile schreibt den Namen der Session in den Programmtitel, den man beispielsweise mit ps sehen kann. Um das ganze etwas komfortabler zu gestalten, ändere ich das initscript /etc/init.d/vsftpd etwas:

status)
status $prog
RETVAL=$?
;;

wird zu

status)
status $prog
RETVAL=$?
ps ax | grep vsftpd | grep -v grep | grep -v init.d | grep -v service
;;

service vsftpd status meldet jetzt:

vsftpd (PID 14122 14120 13231) wird ausgeführt...
13231 ? S 0:00 vsftpd: LISTENER
14120 ? Ss 0:00 vsftpd: 127.0.0.1: connected
14122 ? S 0:00 vsftpd: 127.0.0.1/ftp: IDLE

Funktioniert selbsverständlich auch in Fedoras system-config-services. Das reicht mir für’s Erste, wenn mir noch was auf- oder einfällt, sehen wir weiter.

Fast schon kreativ

Manchmal hat Spam auch einen Unterhaltungswert:

Von: Roger Elke XXXXXX
An: Wolf
Betreff: Medikamente online kaufen
Datum: Mon, 22 May 2006 13:53:53 -0800 (23:53 CEST)

R O L E X
Edle, zeitlos schöne Kopie von Marken-Uhren finden Sie in unserem Online-Shop

Nein, ich meine nicht den grammatikalischen Fehler, sondern den Betreff. Wenn ich Rolex-Replikas an den Mann oder die Frau bringen will, dann doch nicht mit einem Betreff wie „Medikamente online kaufen“. Es sei denn, ich will sicherstellen, daß die Mail auch im dümmsten Spamfilter hängen bleibt. 😮

Official Gentoo-Linux-Zealot translator-o-matic

Toll, daß man die Lesezeichen bei Mozilla (Firefox) auch durchsuchen kann. Da findet man zwar nicht unbedingt das, was man gerade sucht (Notiz an mich selbst: Vielleicht mal sinnvolle Titel verwenden?), aber dafür solche Perlen wie dieses großartige Slashdot-Posting. Ist schon älter und einige von Euch werden es sicher schon kennen, trotzdem muß ich es hier nochmal veröffentlichen, bevor es wieder in den Tiefen meiner Bookmarksammlung verschwindet:

DIE FANBOY MODS
(Score:4, Funny)
by Anonymous Coward on Sunday March 27, @03:50PM (#12061171)
Official Gentoo-Linux-Zealot translator-o-matic

Gentoo Linux is an interesting new distribution with some great features. Unfortunately, it has attracted a large number of clueless wannabes who absolutely MUST advocate Gentoo at every opportunity. Let’s look at the language of these zealots, and find out what it really means…

„Gentoo makes me so much more productive.“
„Although I can’t use the box at the moment because it’s compiling something, as it will be for the next five days, it gives me more time to check out the latest USE flags and potentially unstable optimisation settings.“

„Gentoo is more in the spirit of open source!“
„Apart from Hello World in Pascal at school, I’ve never written a single program in my life or contributed to an open source project, yet staring at endless streams of GCC output whizzing by somehow helps me contribute to international freedom.“

„I use Gentoo because it’s more like the BSDs.“
„Last month I tried to install FreeBSD on a well-supported machine, but the text-based installer scared me off. I’ve never used a BSD, but the guys on Slashdot say that it’s l33t though, so surely I must be for using Gentoo.“

„Heh, my system is soooo much faster after installing Gentoo.“
„I’ve spent hours recompiling Fetchmail, X-Chat, gEdit and thousands of other programs which spend 99% of their time waiting for user input. Even though only the kernel and glibc make a significant difference with optimisations, and RPMs and .debs can be rebuilt with a handful of commands, my box MUST be faster. It’s nothing to do with the fact that I’ve disabled all startup services and I’m running BlackBox instead of GNOME or KDE.“

„…my Gentoo Linux workstation…“
„…my overclocked AMD eMachines box from PC World, and apart from the third-grade made-to-break components and dodgy fan…“

„You Red Hat guys must get sick of dependency hell…“
„I’m too stupid to understand that circular dependencies can be resolved by specifying BOTH .rpms together on the command line, and that problems hardly ever occur if one uses proper Red Hat packages instead of mixing SuSE, Mandrake and Joe’s Linux packages together (which the system wasn’t designed for).“

„All the other distros are soooo out of date.“
„Constantly upgrading to the latest bleeding-edge untested software makes me more productive. Never mind the extensive testing and patching that Debian and Red Hat perform on their packages; I’ve just emerged the latest GNOME beta snapshot and compiled with -09 -fomit-instructions, and it only crashes once every few hours.“

„Let’s face it, Gentoo is the future.“
„OK, so no serious business is going to even consider Gentoo in the near future, and even with proper support and QA in place, it’ll still eat up far too much of a company’s valuable time. But this guy I met on #animepr0n is now using it, so it must be growing!“

Viel los im Chat

Auf #fedora-extras geht’s grade richtig ab:

(23:22:54) [splinux]: skvidal, ping?
(23:23:16) skvidal: [splinux]: what’s up
(23:34:30) ignacio: bpepple: Ping.
(23:40:05) [splinux]: spot, ping?
(23:40:17) spot: hmm?

Hmm, wirklich spannend.

Ausreden (Teil 1)

Ich bin so dumm, das ich mich selbst beißen könnte, habs geschafft, alles kaputt zu machen, und kam um eine Neuinstallation nicht rum.
Hab noch mal yum remove Kernel bla bla eingebenen, um eigentlich zu posten was dort so steht, dann sprang meine Katze auf die Tastatur, weil sie sich erschrocken hat und. wohl die richtige Taste für Yes getroffen, rumms waren die Kernel weg, aber beide.

gefunden im Fedoraforum (Hervorhebungen von mir)

AppArmor vs. SELinux

Am vergangenen Dienstag hat die Diskussion um AppArmor, Novells Alternative zu SELinux, die fedora-devel-list erreicht. Wie immer fing es harmlos an, geht ein wenig offtopic und ein kleiner Einwurf löst eine Grundsatzdiskussion aus, an der auch Größen wie Alan Cox oder Arjan van de Ven nicht vorbeikommen. Ein wirklich lesenswerter Thread mit großartigen Zitaten:

[…] Snowball’s chance in hell the Fedora kernels are going to include apparmor specific patches that should be going into mainline kernel for everyone to use. You want to see it ported and see it available in Fedora Extras… then go chew the novell developers ears off about getting the required kernel patches into the mainline kernel. Please go read up in the lkml archives about Immunix’s SubDomain (newly renamed as Novell AppArmor) to gain insight on where in the process things are to get Immunix’s..err i mean Novell’s kernel patches into the mainline kernel.

-jef“New name==new press release==old news“spaleta

maybe it’s time to accept that SELinux as technology is doomed. Not because the code is bad, but because it’s Just Too Complex(tm).
Complexity kills, and I think the time it is taking to get to the point where at least less than 99% of the people turns selinux off first thing is waay too long already.
[…]

Arjan van de Ven

Lots of things can look pretty but it doesn’t mean they actually solve the fundamental problems. SELinux uses more complex ideas like roles because in the 1960s people working on this stuff realised the simple model actuallydoesn’t work.

Alan Cox

Hier der komplette Thread zum Nachlesen. Unbedingt lesen sollte man auch diesen im Thread erwähnten Artikel im Blog von Daniel Walsh.

Rhyhmbox mit Support für Mass-Storage Player

Die aktuelle Version 0.9.3 des Audio Players Rhythmbox unterstützt jetzt alle Massespeichergeräte, die von HAL als Audioplayer erkannt werden. Playlists werden im Moment aber nur bei Ipods und der PSP unterstützt. Damit in Zukunft weitere Player unterstützt werden können, brauchen die Rhythmbox-Entwickler Eure Hilfe. Was Ihr tun müsst, damit auch Euer MP3 Player unterstützt wird, erfahrt Ihr in einer FootNote von gnomedesktop.org.

Wie alles anfing…

Beim Aufräumen habe ich diese Quittung gefunden. Das waren noch Zeiten…

Quittung: 79 DM für ein SuSE 6.1

Das besagte SuSE 6.1 hat es nicht lange gemacht, denn 2 Wochen später kam mein damaliger Mitbewohner Mattes mit Red Hat 6.0 um die Ecke. Was folgte waren alle Red Hat Linuxe bis einschließlich 7.3, das ich so lange nutzte, bis mangels Aktualität gar nichts mehr ging. Der Nachfolger, Red Hat 8.0 war eine Katastrophe, also kam mir das grade veröffentliche Debian Woody sehr gelegen… (wird fortgesetzt).