site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Oct 29, 2006, at 11:06 PM, Jeffrey Ellis wrote: drwxr-xr-x 4 root admin 136 Oct 29 22:56 Mixdown Project And when the copy was complete: drwxrwxrwx 8 jeffrey jeffrey 272 May 6 2005 Mixdown Project I was sudo'd to do the cp. There are several reasons. Those two cover most cases. = Mike _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... I have just noticed that when doing a copy of a directory, the copy of the directory has different owner/group and permissions than the original, and when done, has reverted back to the original permissions. This was my test directory. Here is my output during the initial stage, just after copying has begun: Can someone tell me why cp is doing this? Firstly, the mkdir(2) system call does not provide a way for the owner/group to be set on the destination (since that would only be useful to root, anyway). Secondly, the directory has to be left as it was created until the copy is complete because the final mode for the directory may preclude creating files within it. This email sent to site_archiver@lists.apple.com