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.
sudoin this respect? Because when I perform asudo grepin this hierarchy I get "access denied" on the files. – d-b Oct 19 '20 at 18:12sudoor otherwise doesn't matter, it's treated the same. Long ago, it used to be that directories needed to have at least onexbit 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