Jump to content
Sign in to follow this  
nebosa

after update 6.8.0 no access rights to /boot/config*

8 posts in this topic Last Reply

Recommended Posts

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 ?

Bildschirmfoto_2020-01-15_21-50-05.png

Share this post


Link to post
  • 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

Share this post


Link to post
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."

Share this post


Link to post
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?

Share this post


Link to post
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?

Share this post


Link to post

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this