Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


D'oh! | 21 comments | Create New Account
Click here to return to the 'D'oh!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
D'oh!
Authored by: a1291762 on Mar 12, '02 05:27:30PM

D'oh! I just looked at an OS X system...

I didn't realise ditto was an Apple supplied command :)

I just tried the setuid bit and it works except for one small thing... It creates the destination file as root.

So if you do "ditto foo bar" then bar is owned by root and you'll need to sudo chown <yourname>.[admin|staff] and possibly reset the permissions on it.

Oh well... maybe a wrapper program could sort that out...



[ Reply to This | # ]