mlocati / powershell-phpmanager

A PowerShell module to install/update PHP, PHP extensions and Composer on Windows

Home Page:https://www.powershellgallery.com/packages/PhpManager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Users rights on extensions

kranack opened this issue · comments

Environment
Windows 2016 Server
PHP 7.3.x
PHPManager 1.20.0

Issue Description
When installing extensions with the PHPManager module, the rights applied on the files are not those I'm expecting. I installed PHP and ImageMagick with Chocolatey and installed ssh2, mongodb and imagick PHP extensions with your module on my windows. Chocolatey seems to apply additionnal read/execute rights for standard users when PHPManager only add the current user rights (here, administrator).
Here's some screenshots to make it more comprehensible.

image
There are the rights applied to sqlite3 extension, "Utilisateurs" refers to all "Users" on the machine I think.

image
There are the rights applied to imagick extension, "J2S" is the user who installed the extension.

I've managed to copy rights with the Get-Acl and Set-Acl commands but I wonder if it could be possible to set these rights "in the Chocolatey way" instead of using the current user (I have no clue of how it's working for Windows).

The brand new PHPManager version 1.22.1 should solve this issue.