cp: cannot stat ‘pth/to/folder‘: Permission denied

cp -r src des

yields

cp: cannot stat 'pth/to/folder': Permission denied

You need to change the permissions to 755 for ALL parent folders of your source and target folder.

Reference

你可能感兴趣的:(linux,bash)