Skip to content
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

[Bug] Calibre unreadable permission for standard user after ever install/upgrade with for global install #14282

Open
3 tasks done
arberg opened this issue Oct 23, 2024 · 1 comment · May be fixed by #14312
Open
3 tasks done
Labels

Comments

@arberg
Copy link

arberg commented Oct 23, 2024

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name

calibre

Expected/Current Behaviour

I install as Administrator using
scoop install calibre -g
or
scoop update calibre -g

This makes all subfiles and folders of the installed dir unreadable by regular:
c:\ProgramData\scoop\apps\calibre<version>*

Steps to Reproduce

scoop update calibre -g

Possible Solution

The problem is its being unpacked in Temp storage and then moved.
The temp storage of the Administrator accoun to does not give files Users readable permissions.

I have fixed this in a pull-request by running this afterwards:

Icacls $dir /t /c /reset

I have tested it on my environment and it works fine.

I have also tested behaviour of windows writing files to temp-storage, and then manually copying to scoop-install-dir, and can see that all files and folders recursively do not get the user-readable permission after copy, so a recursive reset is required.

I'm running an up2date win11.

Scoop and Buckets Version

newest

Scoop Config

last_update           scoop_repo                              scoop_branch
-----------           ----------                              ------------
10/23/2024 8:41:25 PM https://github.com/ScoopInstaller/Scoop master

PowerShell Version

7.4.5

Additional Softwares

No response

@arberg arberg added the bug label Oct 23, 2024
@arberg
Copy link
Author

arberg commented Oct 23, 2024

#14312

Updated with new pull-request because I messed up the first. So ignore #14283 which is now closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant