Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help changing one pref with unix and ARD



this is what i ended up using:

cd /Users
for u in *; do
echo Updating for user $u
su $u -c "defaults write -g com.apple.AppleShareClientCore -dict-add
afp_cleartext_allow -boolean NO"
done


thanks to steve and dane at apple for their help!

____________
Chris Thacker
Campus Life Services - Information Systems
University of California at San Francisco
[help desk] 415 502-5511
[direct line] 415 514-3373

On Feb 7, 2005, at 8:59 AM, Chris Devers wrote:

On Mon, 7 Feb 2005, chris thacker wrote:

thanks a lot for this. i'll work on it.

Please write back if you get it working -- I'm pretty sure this approach
will work, but I can't think of the syntax for it. It would be
interesting to see how it gets solved.

I'd think you could do this for all users on a machine with a block of
shell code something like this:

for user in `nidump passwd . | sed 's/:.*//'`
do
sudo -u $user defaults write ...
done

...but getting the `defaults write ...` is the bit I'm stuck on.


--
Chris Devers

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Remote-desktop mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/remote-desktop/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.