I've noticed that some graphical file manages such as Thunar allow you to remove any directory as long as you are the owner of this directory -- even if this directory contains a sub directory which you do not have write access to. On the other hand,
rm -rf won't allow you to delete such a directory (Permission denied).
dirOwnedByUser └──dirOwnedByRoot $ rm -rf dirOwnedByUser rm: cannot remove 'dirOwnedByUser/dirOwnedByRoot: Permission denied
- Could some explain this to me?
- Is there a way to delete such a directory in Shell?