install
install copied to clipboard
Using .pkg install on Intel, it's recursive change permissions on /usr/local/bin and /usr/local/lib
Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
- [x ] Pkg installation
What you were trying to do (and why)
Im using the .pkg installer Homebrew-4.3.0.pkg on Apple Intel computer running macOS Sonoma 14.4.1.
I already have folders at /usr/local/bin
and /usr/local/lib
with other applications data, for example
SentintelOne (EDR software)
What happened (include command output)
The postinstall script: https://github.com/Homebrew/brew/blob/79cb329f5979f5ee4b9a80c585721684b7730eaa/package/scripts/postinstall#L79 recursive change permissions on these folder and it's being blocked from Sentinelone to change these permissions on it's symlink and dylib which make the pkg installation to "fail" and it feels like a bad idea to change all permissions, I also have other symlinks in the /bin folder
Output from install.log May 20 09:18:45 COMPUTER_NAME package_script_service[1026]: ./postinstall: chown: bin/sentinelctl: Operation not permitted May 20 09:18:45 COMPUTER_NAME package_script_service[1026]: ./postinstall: chown: lib/sentinel.dylib: Operation not permitted
if I tweak the postinstall script to not set recursive on these folders bin lib
it seems to work
chown -R "${homebrew_pkg_user}:admin" Cellar Frameworks Homebrew etc include sbin share opt var
chown "${homebrew_pkg_user}:admin" bin lib
Command output
What you expected to happen
To work