[Casper] run script as different user?

Jeremy Matthews jeremymatthews at mac.com
Wed Aug 20 10:31:44 PDT 2008


You know, the funny thing is that we tried that but our test machine  
wouldn't respect the command.

I'm guessing at this point that since the script has a lot more  
running inside of it, it needs further dissasembly....something must  
be silently failing or changing it back. I know at one point we had a  
pseudo-security daemon that looked for new files, and would change  
them in whatever way that consultant saw fit (before my time).

But, we have re-run ownership (standalone) and it does fix the issue.  
I think the set of setup scripts we "inherited" may need....further  
study.

Thanks,
j

On Aug 20, 2008, at 1:27 PM, Miles Leacy wrote:

> 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/502adc39/attachment.html 


More information about the Casper mailing list