I want to recursively copy a directory, preserving file attributes, which contains a directory tree including some files that have permission 200 (i.e.
The copy command
cp -ar sourcedirectory targetdirectory skips those files, saying, for each one, something like this:
cp: cannot open `sourcedirectory/foo/somefile.bar' for reading: Permission denied`
My question: without altering their permissions, how can I prevent the copy command from skipping those files?
If you think I ought to use a utility other than
cp in my copy command, please explain why.