Am 05. Dec 2008 um 12:13 CET schrieb Uwe Kerstan: > warum funktioniert rm auf lenny bei mir nicht wie erwartet? > > # ls -ld / > drwxr-xr-x 22 root root 4096 15. Okt 12:47 / > > # rm -r -f / > rm: Entfernen von Wurzelverzeichnis "/" nicht möglich > > Wer oder was verhindert hier die Allmacht von root? > Nicht das ich den Befehl täglich brauche, mir interessiert > nur, was hier passiert oder besser nicht passiert. Hast du evtl. safe-rm installiert? # ls -la `which rm` lrwxrwxrwx 1 root root 7 1. Nov 10:50 /usr/bin/rm -> safe-rm ,----[ safe-rm ] | Description: wrapper around the rm command to prevent accidental deletions | This package provides a tool intended to prevent the accidental deletion | of important files by replacing rm with a wrapper, which checks the | given arguments against a configurable blacklist of files and directories | that should never be removed. | . | Users who attempt to delete one of these protected files or directories will | not be able to do so and will be shown a warning message instead. | . | Protected paths can be set both at the site and user levels. | Homepage: http://code.google.com/p/safe-rm/ `---- Gruß Stefan -- ,-----------------------------------------------------------------------------. | Stefan Lütje | Jabber-ID: | | stefan.luetje@t-online.de | Skelli@jabber.ccc.de | `----Key fingerprint = BCB2 48E4 9211 C975 5A3F B192 9B6E CCCF 99CC 44FA-----'
Attachment:
signature.asc
Description: Digital signature