<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Do you happen to know how I can check permissions/the chmod code which I can use to fix permissions?<br></div><div><br>On Dec 4, 2014, at 2:53 PM, <<a href="mailto:mike@midnighteng.com">mike@midnighteng.com</a>> <<a href="mailto:mike@midnighteng.com">mike@midnighteng.com</a>> wrote:<br><br></div><blockquote type="cite"><div><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div><br></div><div>"If the script runs fine from your command line, and not for remote user",</div><div><br></div><div>I say again, it is a file ownership /permissions issue.</div><div><br></div><div>Check the script file for proper permissions and that the script starts off with a proper shebang.<br></div><div><br></div><div>...mike/kb8jnm<br></div><blockquote id="replyBlockquote" webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size:10pt; color:black; font-family:verdana;">
<div id="wmQuoteWrapper">
-------- Original Message --------<br>
Subject: Re: [App_rpt-users] Unable to connect to remote asterisk (does<br>
/var/run/asterisk.ctl exist?)<br>
From: Skyler F <<a href="mailto:electricity440@gmail.com">electricity440@gmail.com</a>><br>
Date: Thu, December 04, 2014 3:49 pm<br>
To: "<<a href="mailto:mike@midnighteng.com">mike@midnighteng.com</a>>" <<a href="mailto:mike@midnighteng.com">mike@midnighteng.com</a>>, <br>
"<a href="mailto:app_rpt-users@ohnosec.org">app_rpt-users@ohnosec.org</a>" <<a href="mailto:app_rpt-users@ohnosec.org">app_rpt-users@ohnosec.org</a>><br>
<br>
<div dir="ltr">The script works fine when I run it normally. I also tried to enter the specific command on the web page. </div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 4, 2014 at 11:25 AM, <span dir="ltr"><<a href="mailto:mike@midnighteng.com" target="_blank">mike@midnighteng.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div><span style="font-family:Verdana;color:#000000;font-size:10pt"><div><span style="font-family:Verdana;color:#000000;font-size:10pt"><div><br></div><div><br></div><div><br></div><div>Does - '/etc/asterisk/scripts/disconnect' script have ownership rights ? <br></div><div><br></div><div>...mike/kb8jnm</div><div><br></div></span><br><br></div> <blockquote style="border-left:2px solid blue;margin-left:8px;padding-left:8px;font-size:10pt;color:black;font-family:verdana"> <div> -------- Original Message --------<br> Subject: [App_rpt-users] Unable to connect to remote asterisk (does<br> /var/run/asterisk.ctl exist?)<br> From: Skyler Fennell <<a href="mailto:electricity440@gmail.com" target="_blank">electricity440@gmail.com</a>><br> Date: Thu, December 04, 2014 12:05 pm<br> To: "<a href="mailto:app_rpt-users@ohnosec.org" target="_blank">app_rpt-users@ohnosec.org</a>" <<a href="mailto:app_rpt-users@ohnosec.org" target="_blank">app_rpt-users@ohnosec.org</a>><br> <br> I created a simple php file where anyone with the link can disconnect my nose from all links if something wrong is going on (due to the fact my node is same channel, half duplex linked, and if it was stuck on transmit, local transmissions would double with the node)<br> <br> <?php<br> <br> echo "All links sucessfully disconnected from 40764, KDØWHB test1";<br> <br> echo '><pre>';<br> <br> // Outputs all the result of shellcommand "", and returns<br> // the last output line into $last_line. Stores the return value<br> // of the shell command in $retval.<br> $last_line = system('/etc/asterisk/scripts/disconnect', $retval);<br> <br> // Printing additional info<br> echo '<br> </pre><br> <hr />Last line of the output: ' . $last_line . '<br> <hr />Return value: ' . $retval;<br> ?><br> <br> The code was found on the php website as a sample and I just changed ls to my script that works when ran from a normal shell.<br> <br> Visiting <a href="http://kd0whb.duckdns.org/disconnect.php" target="_blank">kd0whb.duckdns.org/disconnect.php</a> shows the output of "unable to connect to remote" <br> <br> Any suggestions? <br> <br> Thanks,<br> Skyler, KDØWHB<br> _______________________________________________<br> App_rpt-users mailing list<br> <a href="mailto:App_rpt-users@ohnosec.org" target="_blank">App_rpt-users@ohnosec.org</a><br> <a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a><br> <br> To unsubscribe from this list please visit <a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a> and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"<br> You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem. </div> </blockquote></span></div> </div></div><br>_______________________________________________<br> App_rpt-users mailing list<br> <a target="_blank" href="mailto:App_rpt-users@ohnosec.org">App_rpt-users@ohnosec.org</a><br> <a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a><br> <br> To unsubscribe from this list please visit <a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a> and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"<br> You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem. <br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="arial narrow, sans-serif" color="#38761d">Skyler Fennell</font><div><font face="arial narrow, sans-serif" color="#38761d"><a href="http://amsatnet.info" target="_blank">amsatnet.info</a></font></div><div><font face="arial narrow, sans-serif" color="#38761d">KDØWHB</font></div><div><font face="arial narrow, sans-serif" color="#38761d"><a href="mailto:electricity440@gmail.com" target="_blank">electricity440@gmail.com</a></font></div></div></div> </div>
</div>
</blockquote></span>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>App_rpt-users mailing list</span><br><span><a href="mailto:App_rpt-users@ohnosec.org">App_rpt-users@ohnosec.org</a></span><br><span><a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a></span><br><span></span><br><span>To unsubscribe from this list please visit <a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a> and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"</span><br><span>You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem. </span></div></blockquote></body></html>