<HTML>
<HEAD>
<TITLE>Re: [Casper] help with scripts in policys</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>That box doesn&#8217;t exist in 6.x.<BR>
<BR>
I&#8217;ve run into issues where the login and logout hooked scripts aren&#8217;t running as root, but the user...I believe. I found this out when trying to trigger packages to install at login on an AD bound machine. Instead of using the credentials provided in the script to mount my SMB share it would always take the logged on user, then fail since they didn&#8217;t have rights (I don&#8217;t have my shares global read).<BR>
<BR>
Craig E<BR>
<BR>
<BR>
On 9/9/08 8:10 AM, &quot;enrique silberg&quot; &lt;<a href="enrique.silberg@yr.com">enrique.silberg@yr.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Did you check box to run as root<BR>
<BR>
<BR>
On 9/9/08 9:00 AM, &quot;Criss &nbsp;Myers&quot; &lt;<a href="CMyers@uclan.ac.uk">CMyers@uclan.ac.uk</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> &nbsp;&nbsp;<BR>
<BR>
&nbsp;</SPAN></FONT><FONT SIZE="4"><FONT FACE="Lucida Grande"><SPAN STYLE='font-size:14pt'>Hi Peps</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> &nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;</SPAN></FONT><FONT SIZE="4"><FONT FACE="Lucida Grande"><SPAN STYLE='font-size:14pt'>I have a shell script which i can run as root and it runs fine, however when i run via policy it doesnt work, i persume this is because it is running as the logged in user</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> &nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;</SPAN></FONT><FONT SIZE="4"><FONT FACE="Lucida Grande"><SPAN STYLE='font-size:14pt'> CleanUpAdobe.sh / $computerName $userName &nbsp;&nbsp;</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> &nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;</SPAN></FONT><FONT SIZE="4"><FONT FACE="Lucida Grande"><SPAN STYLE='font-size:14pt'>i persume this in the policy means run as the logged in user?</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> &nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;</SPAN></FONT><FONT SIZE="4"><FONT FACE="Lucida Grande"><SPAN STYLE='font-size:14pt'>How do i go about changing that to run? or will a run at startup do this?</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> &nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;</SPAN></FONT><FONT SIZE="4"><FONT FACE="Lucida Grande"><SPAN STYLE='font-size:14pt'>Regards</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> &nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
<BR>
&nbsp;</SPAN></FONT><FONT SIZE="4"><FONT FACE="Lucida Grande"><SPAN STYLE='font-size:14pt'>Criss</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> <BR>
&nbsp;<BR>
Criss Myers<BR>
<BR>
Senior Customer Support Analyst (Mac Services)<BR>
<BR>
Apple Certified Technical Coordinator v10.5<BR>
<BR>
LIS Business Support Team<BR>
<BR>
Library 301<BR>
<BR>
University of Central Lancashire<BR>
<BR>
Preston PR1 2HE<BR>
<BR>
Ex 5054<BR>
<BR>
01772 895054<BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
Casper mailing list<BR>
<a href="Casper@list.jamfsoftware.com">Casper@list.jamfsoftware.com</a><BR>
<a href="http://list.jamfsoftware.com/mailman/listinfo/casper">http://list.jamfsoftware.com/mailman/listinfo/casper</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>