[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rm files owned by root?



Bernd Eckenfels wrote:
> But to delete a directory, it must be empty.
That's not completely true. You can unlink() (delete) a directory without it
being empty. rmdir won't do it, but it's possible. Note: don't do this unless
absolutely necessary, and always remount the volume ro and fsck it after
unlink()ing a non empty directory.



-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/CM$/CS>$/CC/IT$/M/S/O/U dpu s+:++ !a C++$>C+++$
UB+++>++++$L++++$*-- P+>++$ L+++(++++)$ E-(---) W+++>$ N(+) o? K-
w--(---) O? M V? PS++@ PE-@ Y+@ PGP++(+++)>$ t? 5? X? R tv--(-)
b++(+++)@ DI? D? G e->++++ h* r? z*
------END GEEK CODE BLOCK------

David Mandelberg
mandelbergd@eth0.is-a-geek.org

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: