Firefox Installs From .pkg Files Require Password Prompt to Update
Categories
(Release Engineering :: General, defect, P3)
Tracking
(firefox153 fixed)
| Tracking | Status | |
|---|---|---|
| firefox153 | --- | fixed |
People
(Reporter: haik, Assigned: hneiva)
References
Details
Attachments
(3 files)
When installing Firefox from a .pkg (not a .dmg), the installer places Firefox in /Applications with owner:group permissions as root:wheel. As a result of the 'wheel' group ownership, when the install of Firefox is updated, the update requires the user to authenticate with their password (or any admin account password). This allows Firefox's privileged updater to run which updates files and leaves the permissions as root:admin so that future updates by admin users can proceed without a password prompt.
It would be better if .pkg installs were configured to install Firefox with admin group ownership (i.e., root:admin) so that Firefox could be updated without a password prompt.
According to the pkgbuild(1) man page, this can be accomplished with the --ownership option.
Example Firefox pkg: Firefox_110_b5.pkg
| Reporter | ||
Comment 1•3 years ago
|
||
@mkaply, do you know if enterprise use requires we install Firefox with root:wheel ownership on macOS so that Firefox can not be updated by non-admin users? This question only applies to installs from the .pkg files.
Comment 2•3 years ago
|
||
I got a response from one admin and they said it really doesn't make a difference.
I'm assuming you either have to put in the password at install or first update, right?
| Reporter | ||
Comment 3•3 years ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #2)
I got a response from one admin and they said it really doesn't make a difference.
OK, thanks.
I'm assuming you either have to put in the password at install or first update, right?
Sorry, my question was not worded correctly. This only applies to admin users. Non-admin users need an admin user to authenticate in order to install and for every update regardless of this proposed change. Fixing this would just be streamlining the first update for admin users so I think it's a clear-cut improvement.
The way it is now, you have to put in the password both at install time and on the first update.
If we changed the .pkg install to install Firefox with root:admin ownership, then the user would only need to input the password when they install.
Comment 4•3 years ago
|
||
If we changed the .pkg install to install Firefox with root:admin ownership, then the user would only need to input the password when they install.
That seems like the right thing to do.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 5•3 years ago
•
|
||
We had a chance to investigate this bug yesterday to mixed results - the actual ownership issue is coming from further up the chain and the tooling on the current hardware does not provide for us an easy fix. Current hardware in our release pipeline which executes packaging code involves older mac minis with tooling outdated to the necessary commands to create copies of the archive with the correct ownership, or to change the ownership altogether. When we change the hardware and tooling on which we generate the signed .pkgs (part of a larger project), we will be able to fix this. For now, moving to releng.
Updated•3 years ago
|
| Reporter | ||
Comment 7•2 years ago
|
||
We definitely still want to address this, but it's not being worked on right now.
Updated•1 year ago
|
| Assignee | ||
Comment 8•1 year ago
|
||
I'm expecting we'll look into this again once we have the new mac hardware in place. (Newer version of xcode)
Updated•1 year ago
|
Comment 9•8 months ago
|
||
| Reporter | ||
Updated•6 months ago
|
| Assignee | ||
Comment 10•6 months ago
|
||
Updated•6 months ago
|
| Assignee | ||
Comment 11•6 months ago
|
||
Updated•5 months ago
|
Updated•5 months ago
|
Comment 12•4 months ago
|
||
Comment 13•4 months ago
|
||
Comment 14•4 months ago
|
||
Backed out for causing gecko decision failures
Backout link
Push with failures
Failure log(s)
Comment 15•4 months ago
|
||
Comment 16•4 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/67a6e91524f8
https://hg.mozilla.org/mozilla-central/rev/b000ac6beec8
Comment 17•4 months ago
|
||
Comment 18•4 months ago
|
||
| backout bugherder | ||
Comment 19•4 months ago
|
||
Can you give me a description for this for the enterprise readme?
| Assignee | ||
Comment 20•4 months ago
•
|
||
:mkaply I'd do something along the lines of:
MacOS pkg installer: set installed file ownership to
root:admininstead ofroot:wheel. This allows any user in theadmingroup (administrators) to update the app in place without being prompted for credentials, matching the behavior users expect from a standard Mac application install.
Comment 21•4 months ago
|
||
Comment 22•4 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/335faf2a507e
https://hg.mozilla.org/mozilla-central/rev/db4d2e5f6e68
| Assignee | ||
Updated•4 months ago
|
Description
•