Scoop icon indicating copy to clipboard operation
Scoop copied to clipboard

[Feature] Global app installation with non-Administrator accounts

Open Skyb0rg007 opened this issue 8 months ago • 5 comments

Feature Request

scoop makes the following two assumptions about installation

  1. scoop should not be installed on the Administrator account
  2. Installing an app globally should be done via sudo

However this setup does not work properly if the Windows system only has the Administrator account and a non-Administrator account

  • sudo exits with an error because you are not part of the Administrator group
  • Launching an Administrator powershell session does not include scoop on the $env:PATH
  • Running scoop in an Administrator shell through its full path causes Git fatal errors concerning the ownership of repos

Describe the solution you'd like

Some official documentation on how to install applications globally if you are not an Administrator (but have access to the Admin account itself)

Describe alternatives you've considered

  • Manually adding scoop to the system environment variables and marking git's safe.directory '*' system-wide
    • This is not listed as a supported option, and would need to be manually removed if scoop is uninstalled
  • Commenting-out the Administrator check from sudo
    • The scoop program is not on the Administrator path, so it still causes a command not found error
  • Installing scoop a second time as Administrator
    • The installation script warns against this
    • "Unless you know what you are doing" does not apply to me

Skyb0rg007 avatar Jun 17 '24 15:06 Skyb0rg007