Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Ditto not maintaining ownerships and permissions

Ditto not maintaining ownerships and permissions
Thread Tools
C.J. Moof
Mac Elite
Join Date: Aug 2001
Location: Madison, WI
Status: Offline
Reply With Quote
Apr 22, 2003, 01:34 PM
 
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.
     
C.J. Moof  (op)
Mac Elite
Join Date: Aug 2001
Location: Madison, WI
Status: Offline
Reply With Quote
Apr 22, 2003, 02:00 PM
 
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 Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 02:04 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,