-
-
Notifications
You must be signed in to change notification settings - Fork 662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Executable files are not executable (+x
) after upgrade
#2619
Comments
Thanks for posting your issue! Exactly where are these files located? I'm thinking, maybe we should add some more files to setup_secure_nextcloud_permissions...? |
These are the two apps I have come across so far that have this issue:
|
Aah, I see what you mean. For notify push we can implement this:
But I'm not sure about the translate app, can you do a |
It's the translate app: https://apps.nextcloud.com/apps/translate
|
Just wrote a fix for all files from the top of my head, need to test before merge. |
Please test this file: https://raw.githubusercontent.com/nextcloud/vm/2619/nextcloud_update.sh It should work with all executable, no matter the name. :) |
Great stuff, thanks for the quick fix! I haven't tested the code out, but I've had a quick look through it. My first concern was: finding all executable files and making them execuable could be a security issue (for example, if someone's managed to get bad files into your nextcloud install). But then I saw you are not making any new files executable, only the ones that were executable before the upgrade - so that looks good. There is maybe a very small risk of a certain file no longer existing after an upgrade which could lead to a security issue / attack route in, but I think this is very small. Example:
I don't think this is really an issue, and I guess this is what code signing is supposed to solve - not something we can really deal with! |
That's not likely, I don't see any reason to change name of the executable, and if that occurs we will handle that then. I haven't tested this widely, so please run the new script to see if it does what 's expected. |
That sounds reasonable, yeah. I am probably being overly cautious. For the script - can I just run it straight off or do I need to wait for an actual upgrade/release? I found another executable that popped up in my logs just now:
|
Yes, just run it, it will be like a standard run with the fix implemented. 👍 It won't actually execute any Though, if you run it with |
Were you able to test? :) |
No not yet, I've had a busy few days! Will try to look at it in the next 2-3 days and reply here :D |
* part fix #2619 make sure the bin is exceutable Signed-off-by: Daniel Hansson <mailto@danielhansson.nu> * one solution for all files Signed-off-by: Daniel Hansson <mailto@danielhansson.nu> * Update nextcloud_update.sh Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Daniel Hansson <mailto@danielhansson.nu> * Update nextcloud_update.sh Signed-off-by: Daniel Hansson <mailto@danielhansson.nu> * tested and works Signed-off-by: Daniel Hansson <mailto@danielhansson.nu> --------- Signed-off-by: Daniel Hansson <mailto@danielhansson.nu> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thank you for this! I had no problems with upgrade to 28.0.5 |
Steps To Reproduce
Every time I upgrade using
sudo bash /var/scripts/menu.sh
my executable files (mainly:notify_push
andtranslate/bin/node
are not executable which causes errors. If I manuallychmod +x
these files then it works OK.sudo bash /var/scripts/menu.sh
and going to minor/major upgradeThis might be an issue with running the upgrade script with
sudo
, but the script complains if you don't do this.Expected Result
The apps installed during an update should be executable and continue to run
Actual Result
Files are not executable
Screenshots, Videos, or Pastebins
No response
Additional Context
No response
Build Version
28.0.4
Environment
By downloading the VM
Environment Details
No response
The text was updated successfully, but these errors were encountered: