|
|
Ditto not maintaining ownerships and permissions
|
|
|
|
Mac Elite
Join Date: Aug 2001
Location: Madison, WI
Status:
Offline
|
|
Since "man ditto" tells me this:
"ditto overwrites existing files, symbolic links, and devices in the destination when these are copied from a source. The resulting files, links, and devices will have the same mode, owner, and group as the source items from which they are copied."
Then why do I get this?:
Code:
[millivanilli:~/Desktop] syuroff% ls -al PDFs\ to\ read/
total 18984
drwxr-xr-x 8 syuroff staff 272 Mar 27 21:31 .
drwx------ 15 syuroff staff 510 Apr 22 12:20 ..
-rw-r--r-- 1 thg mail 227470 Feb 13 09:29 BuildingABetterBackButton.pdf
drwxr-xr-x 5 syuroff staff 170 Mar 21 10:43 PGPrivacy 800-F-X
-rw-r--r-- 1 teddybea staff 105025 Mar 27 09:35 Qubux Antivirus Data sheet.pdf
-rw-r--r-- 1 nobody unknown 1252937 Mar 8 16:31 Vanguard Roth Conversion kit.pdf
-rw-r--r-- 1 teddybea staff 3409277 Oct 29 10:27 webpagesthatsuck.pdf
-rw-r--r-- 1 thg jabber 4715620 Mar 10 23:11 xvsxp.pdf
[millivanilli:~/Desktop] syuroff% ditto PDFs\ to\ read/ PDF2
[millivanilli:~/Desktop] syuroff% ls -al PDF2
total 18984
drwxr-xr-x 8 syuroff staff 272 Mar 27 21:31 .
drwx------ 16 syuroff staff 544 Apr 22 12:23 ..
-rw-r--r-- 1 syuroff staff 227470 Feb 13 09:29 BuildingABetterBackButton.pdf
drwxr-xr-x 5 syuroff staff 170 Mar 21 10:43 PGPrivacy 800-F-X
-rw-r--r-- 1 syuroff staff 105025 Mar 27 09:35 Qubux Antivirus Data sheet.pdf
-rw-r--r-- 1 syuroff staff 1252937 Mar 8 16:31 Vanguard Roth Conversion kit.pdf
-rw-r--r-- 1 syuroff staff 3409277 Oct 29 10:27 webpagesthatsuck.pdf
-rw-r--r-- 1 syuroff staff 4715620 Mar 10 23:11 xvsxp.pdf
[millivanilli:~/Desktop] syuroff%
First time around, my .pdf files have various owners and groups. Ditto them, and they're all owned by me. That sure doesn't seem like the same mode, owner and group to me.....
What don't I get?
|
OS X: Where software installation doesn't require wizards with shields.
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Aug 2001
Location: Madison, WI
Status:
Offline
|
|
Answered my own question. Well, kinda.
The trick is to "sudo ditto" and then do stuff. I don't get why, but it works....
|
OS X: Where software installation doesn't require wizards with shields.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|