You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Furthermore, the command grep postinstall /var/log/install.log in the Terminal shows an error:
...
2024-07-04 10:12:34+02 Michaels-iMac-Pro package_script_service[666]: ./postinstall: chmod: /Applications/Brave Browser universal.app: No such file or directory
2024-07-04 10:12:34+02 Michaels-iMac-Pro package_script_service[666]: ./postinstall: chown: /Applications/Brave Browser universal.app: No such file or directory
2024-07-04 10:12:34+02 Michaels-iMac-Pro package_script_service[666]: ./postinstall: chgrp: /Applications/Brave Browser universal.app: No such file or directory
The above mean that Brave was installed into /Applications/Brave Browser.app with ownership root:wheel because the postinstall script could not change the ownership of the files.
Expected result
ls -alh /Applications/Brave\ Browser.app should give:
total 0
drwxrwxr-x 3 michael admin 96B Jul 4 10:23 .
drwxrwxr-x 8 root admin 256B Jul 4 10:23 ..
drwxrwxr-x 11 michael admin 352B Jun 25 13:02 Contents
In words, it should say that the application directory is owned by the installing user and the admin group.
Similarly, grep postinstall /var/log/install.log should not indicate any errors.
This can be achieved by renaming Brave-Browser-universal.pkg to Brave-Browser-BRV001.pkg.
The bug is caused by the promo code extraction logic in our postinstall script.
This bug is one (if not the only) cause of #9562. When /Applications/Brave Browser.app is owned by root, then installing an update via brave://settings/help and clicking on the ensuing Relaunch button prompts for elevation:
The text was updated successfully, but these errors were encountered:
Description
Depending on its file name, Brave's PKG installer does or does not correctly set the owner and permissions of the installation directory.
Steps to reproduce
/var/log/install.log
via the Terminal:sudo rm /var/log/install.log
.Actual result
The output of the command
ls -alh /Applications/Brave\ Browser.app
in the Terminal is:Furthermore, the command
grep postinstall /var/log/install.log
in the Terminal shows an error:The above mean that Brave was installed into
/Applications/Brave Browser.app
with ownershiproot:wheel
because thepostinstall
script could not change the ownership of the files.Expected result
ls -alh /Applications/Brave\ Browser.app
should give:In words, it should say that the application directory is owned by the installing user and the
admin
group.Similarly,
grep postinstall /var/log/install.log
should not indicate any errors.This can be achieved by renaming
Brave-Browser-universal.pkg
toBrave-Browser-BRV001.pkg
.Reproduces how often
Easily reproduced
Brave version (brave://version info)
Brave 1.67.123 Chromium 126.0.6478.126
macOS 13.6.7
Channel information
Reproducibility
Miscellaneous information
The bug is caused by the promo code extraction logic in our
postinstall script
.This bug is one (if not the only) cause of #9562. When
/Applications/Brave Browser.app
is owned byroot
, then installing an update viabrave://settings/help
and clicking on the ensuing Relaunch button prompts for elevation:The text was updated successfully, but these errors were encountered: