nebosa Posted January 16, 2020 Share Posted January 16, 2020 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 ? Quote Link to comment
JonathanM Posted January 16, 2020 Share Posted January 16, 2020 Did you read the release notes? Quote Link to comment
nebosa Posted January 16, 2020 Author Share Posted January 16, 2020 no What can I do ? Quote Link to comment
Squid Posted January 16, 2020 Share Posted January 16, 2020 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 Quote Link to comment
Hoopster Posted January 16, 2020 Share Posted January 16, 2020 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." Quote Link to comment
AcidRainX Posted January 20, 2020 Share Posted January 20, 2020 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? Quote Link to comment
testdasi Posted January 20, 2020 Share Posted January 20, 2020 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? 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.