This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

18.5.2 - Can't execute scripts anymore

We've been using a speed test script for years on our SG/XGs, just a heads up from 18.5.2 we now get permission denied.

Just to be sure, ran it on another 18.5.1 box, worked. Upgraded to 18.5.2, permission denied. May be worth checking any quality of life scripts you use to see if you're affected.



This thread was automatically locked due to age.
Parents
  • wget was removed on the appliance. Does your script use wget? 

    __________________________________________________________________________________________________________________

  • "curl" is blocked too, but actually, I don't think curl or wget are blocked, as I can wget or curl down the original file fine from the command line, it's just when I run the script I get permission denied, even if I remove the #!/bin/sh first line.

    So looks like calling an executable file in any way is blocked, is there a work around? Even if I remove the .sh extension, it's still permission denied 

    ------------------------------------------------

    worlds number one free ICMP monitoring platform: https://pinescore.com

  • You need to give execute permission with chmod +x ns_speedtest_v4.sh

    Example:

    XG115w_XN03_SFOS 19.0.0 EAP1-Build244# vim test.sh
    XG115w_XN03_SFOS 19.0.0 EAP1-Build244# ./test.sh
    /bin/sh: ./test.sh: Permission denied
    XG115w_XN03_SFOS 19.0.0 EAP1-Build244# chmod +x test.sh
    XG115w_XN03_SFOS 19.0.0 EAP1-Build244# ./test.sh
    Hello
    XG115w_XN03_SFOS 19.0.0 EAP1-Build244#


    If a post solves your question use the 'Verify Answer' button.

    Ryzen 5600U + I226-V (KVM) v20 GA @ Home

    XG 115w Rev.3 8GB RAM v19.5 MR3 @ Travel Firewall

  • sorry i'd left that bit out of screenshot, same issue. Maybe it works on v19, do you have any 18.5.2's to try:

    ------------------------------------------------

    worlds number one free ICMP monitoring platform: https://pinescore.com

Reply Children