开发者

Unix cp command not transferring 777 permission?

开发者 https://www.devze.com 2023-04-05 17:15 出处:网络
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 perm

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消