Permission error when running script

  • I'm getting a permission error 13 when running /storage/.kodi/userdata/addon_data/service.vpn.manager/UserDefined/up.sh (from Zomboided OVPN)

    i connected using SSH and ran chmod +x /storage/.kodi/userdata/addon_data/service.vpn.manager/UserDefined/up.sh which was successful, but still get the permission error. What am I doing wrong?


    Here's the script


    #!/bin/bash

    iptables -F

    iptables -A INPUT -i tun0 -m state --state ESTABLISHED,RELATED -j ACCEPT

    iptables -A INPUT -i tun0 -j DROP


  • The issue is probably add-on configuration not the content of the script or filesystem perms. You've probably configured a path to a folder not the script so it's trying to execute the folder (which isn't an executable object), hence the error.