[Casper] run script as different user?

Miles Leacy miles.leacy at themacadmin.com
Wed Aug 20 10:27:30 PDT 2008


On Wed, Aug 20, 2008 at 1:22 PM, Jeremy Matthews <jeremymatthews at mac.com>wrote:

> Thomas,
>
> We used a wild card...or at last, what I thought was a wild card:
> ----
> for i in $( ls /Users )
> do
> defaults write /Users/$i/Library/Preferences/com.panic.Transmit3
> SerialNumber 333-333-333-333
> done
> ----
>
> Unfortunately, this runs as root, so permissions get horked, etc.


Add the line:
chown $i /Users/$i/Library/Preferences/com.panic.Transmit3.plist

before the "done" statement.

ta-daa!  your users' plist now belongs to them.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20080820/99d7888d/attachment.htm 


More information about the Casper mailing list