January 16, 20206 yr after the update to 6.8.0, some scripts no longer ran. My troubleshooting brought me to the fact that all files in /boot/config are set to 600!? I am logged in as root, I cannot change the file rights! The chmod commands are executed (without errors) but they do not change anything. What can I do ?
January 16, 20206 yr copy the file(s) to say /tmp and execute it from there instead of executing "/boot/path/script.sh", execute "bash /boot/path/script.sh" This is all security related in tying down access rights to the boot device
January 16, 20206 yr 13 minutes ago, nebosa said: no What can I do ? Read the release notes where it states: "In another step toward better security, the USB flash boot device is configured so that programs and scripts residing there cannot be directly executed (this is because the 'x' bit is set now only for directories). Commands placed in the 'go' file still execute because during startup, that file is copied to /tmp first and then executed from there. If you have created custom scripts you may need to take a similar approach."
January 20, 20206 yr On 1/16/2020 at 6:11 PM, Hoopster said: [...] Commands placed in the 'go' file still execute because during startup, that file is copied to /tmp first and then executed from there. If you have created custom scripts you may need to take a similar approach."[...] That means, I have to write to my GO-File (for every user script I have), copy xyz.sh /tmp chmod +x xyz.sh And, e.g. in the s3 Sleep Plugin where I can run userdefined scripts, I have to take the scripts which are in my /tmp? And, if I want to edit my script, I need to edit my script in "flash/config" folder, copy it again to my /tmp?
January 20, 20206 yr 32 minutes ago, AcidRainX said: That means, I have to write to my GO-File (for every user script I have), copy xyz.sh /tmp chmod +x xyz.sh And, e.g. in the s3 Sleep Plugin where I can run userdefined scripts, I have to take the scripts which are in my /tmp? And, if I want to edit my script, I need to edit my script in "flash/config" folder, copy it again to my /tmp? Or have all your scrips in a folder and copy + chmod the entire folder recursively?
Archived
This topic is now archived and is closed to further replies.