Permissions on files installed by plugins


ljm42

Recommended Posts

Hey plugin authors! I am trying to prevent a class of errors related to ownership and permissions on files/dirs installed by plugins.

 

We want to make sure that all files/dirs are owned by root:root and have perms of 755 or 644. This applies to files installed in the operating system, not user files you place on the flash or array.

 

Unraid itself does not yet enforce these rules, but I'd like to get there.

 

I've written a small script that detects problems, you can see it here:
  https://gist.github.com/ljm42/d612bcfbc071d854baba53c482fd64e4

 

To run it on your system and detect issues with the plugins you have installed:

 

It will run through the txz files on your flash drive and flag any ownership issues or permission issues.

 

Please update your plugin's txz files so they are not flagged by this test. Or let me know if you think it is flagging something unnecessarily.

 

Thanks!

 

p.s. please don't feel personally attacked by this, my plugin fails this test currently too :)

  • Like 1
Link to comment
  • 2 weeks later...

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.