I want to copy (tar and zip) a directory hierarchy that doesn't even have read permissions for root enabled - WITHOUT changing the permissions (it is part of the system and I assume they have these permissions for a reason).
How can this be done?
Linux.
sudo
in this respect? Because when I perform asudo grep
in this hierarchy I get "access denied" on the files. – d-b Oct 19 '20 at 18:12sudo
or otherwise doesn't matter, it's treated the same. Long ago, it used to be that directories needed to have at least onex
bit set in order to be traversed, even by root - but even that is no longer the case. So the only scenario I can think up where you'd see this is on a network-mounted filesystem. If that's not the case, then I'm truly puzzled... – patbarron Oct 20 '20 at 16:25