Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to run script from the persistant directory /conf or /cf/conf/?

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 2 Posters 378 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      testcb00
      last edited by testcb00

      I am testing the function of nut package. I stored the upssched-cmd script with 755 user:wheel permission in /conf.

      When I try the upssched command, it shows Permission Denied.

      2e9c3c7c-fef0-4024-992b-1a0a67a33b0d-image.png

      However, if I copy the upsssched-cmd script to /tmp, I can run it.

      Is it possible to edit the permission of the directory?
      902dab50-c9f9-4eab-a2a9-1555ad9d466d-image.png

      1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks
        last edited by

        Don't do that! That directory is "no execute" for a very good reason.

        Instead, put your custom shell scripts in /usr/local/etc/rc.d/ or perhaps /usr/local/bin/.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.