Unix cp command not transferring 777 permission?
I've been using cp -r to duplicate some things in my file system and something bizarre keeps happeni开发者_StackOverflow社区ng...certain directories that are permissioned as 777 have more secure permissions in the target directories I am copying to.
Is this normal behavior?
cp -a might resolve your situation, you need to tell cp to preserve the permissions so that it doesn't inherit them from your umask.
精彩评论