Re: rm files owned by root?
Florian Weimer <email@example.com> writes:
> * Ulrich Fürst:
> > Bernd Eckenfels <firstname.lastname@example.org> wrote:
> >> This is a Unix FAQ. You can delete any file if you have write access
> >> to the directory. Actually you dont delete the file, you remove the
> >> "link" to the
> > So if my /home/ is 775 and root.users and I'm in the group users I can
> > delete everybody's home directory?
> Only if it's empty. You could rename it to /tmp on most
> installations, where it would be deleted after the next reboot.
Removing a directory requires write permission on the directory
itself, because you have to delete the "." and ".." links inside the
Renaming a directory requires write permission on the directory if its
parent changes, because you have to rewrite the ".." link.