How to run script from the persistant directory /conf or /cf/conf/?
-
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.
However, if I copy the upsssched-cmd script to /tmp, I can run it.
Is it possible to edit the permission of the directory?
-
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/
.