Skip to main content Permission denied enabling/starting script : r/openwrt
Go to openwrt
•

Permission denied enabling/starting script

From SSH I get the following error:

root@OpenWrt:/etc/init.d# /etc/init.d/startup-script enable 
-ash: /etc/init.d/startup-script: Permission denied

I had logged in before and I can use commands like cp in the directory without problem. I get the same error with start and LuCi shows the following message: Failed to execute "/etc/init.d/startup-script enable" action: Command failed

I was following the guide of this post, with a few changes to the filenames and a portion of the first script so I could check the connection to the main router in the LAN network. I am having trouble with the second script file, which is /etc/init.d/startup-script.

Do you know how can I solve it? I've googled and found nothing.

Thanks in advance.

Slash review times, eliminate bugs, and get valuable insights into your projects and code.
  • Slash review times, eliminate bugs, and get valuable insights into your projects and code.
  • Slash review times, eliminate bugs, and get valuable insights into your projects and code.
  • Slash review times, eliminate bugs, and get valuable insights into your projects and code.
  • Sort by:
    Best
    Open comment sort options

    Make sure the script has the execute bit set:

    chmod +x /etc/init.d/startup-script

    Thank you very much!! That was it!

    I still received "permission denied" after this operation...

    More replies