Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrivilegedHelper #35

Open
erikng opened this issue Feb 7, 2021 · 14 comments
Open

PrivilegedHelper #35

erikng opened this issue Feb 7, 2021 · 14 comments
Labels
help wanted Extra attention is needed

Comments

@erikng
Copy link
Member

erikng commented Feb 7, 2021

  1. Would allow us to possibly help companies with standard users
  2. Would be required to fulfill add "UMAD" functionality #34
@erikng
Copy link
Member Author

erikng commented Feb 9, 2021

To use a privileged helper tool the application and helper has to be signed by a valid deverloper certificate.

@erikng
Copy link
Member Author

erikng commented Feb 9, 2021

will need #53

@erikng erikng added help wanted Extra attention is needed v2 version 2.0 of Nudge labels Feb 11, 2021
@erikng erikng changed the title PrivelegedHelper PrivilegedHelper Feb 11, 2021
@smithjw
Copy link
Contributor

smithjw commented Feb 12, 2021

This would be a great feature as half my users are Standard users. When there are critical OS Updates available we need a way to get users (Standard and Admin) to upgrade and using the same front-end would lead to a better UX overall.

@abstertee
Copy link

abstertee commented Feb 12, 2021

I've added the logic and code needed for a privileged helper in my forked version here: https://github.com/abstertee/NudgeSwift/tree/main/Nudge-Helper

But we still need an Apple Signing cert and some details from that cert that need to be entered in some of the files.

@erikng
Copy link
Member Author

erikng commented Mar 24, 2021

@abstertee was the privileged helper to run scripts as root? I've done some research on Privileged Helpers and I don't see how they would solve point 1 in this issue.

@abstertee
Copy link

@erikng yes, the idea is that the privileged helper runs the script commands as root. The helper would help companies with standard users because the helper tool runs with root privilege while the app runs under the user's context.

@erikng erikng added enhancement New feature or request proposed A possible enhancement labels Aug 19, 2021
@holzhannes
Copy link

I like the Idea very much. Maybe it is possible to use the tool macOS-enterprise-privileges just to give the user the rights to do a upgrade. For updates it seems to work with standard user rights as well.

@bradtchapman
Copy link

bradtchapman commented Feb 9, 2024

@erikng : now that the executable is properly signed and notarized, and issue #53 is closed (you mentioned it here), can you implement anything like this? Is it still on your roadmap?

SupportApp by Root3.nl has implemented a PrivilegedHelper to execute scripts.

@erikng erikng removed enhancement New feature or request v2 version 2.0 of Nudge proposed A possible enhancement labels Jul 2, 2024
@rustymyers
Copy link

Any thoughts on using code from @abstertee for privileged helper?

@erikng
Copy link
Member Author

erikng commented Mar 10, 2025

What would be the outcome after implementing it. I decided that I didn't want umad in this code base a while back.

@rustymyers
Copy link

The ideal outcome would be to allow standard macOS users to install major system upgrades (10.14->10.15) without needing to be elevated to admin permissions first. The privilegedhelper could be enabled with an optional launchdaemon.

@theirongiant82
Copy link

@rustymyers : If Mojave and Catalina are your expected use case—are those hypotheticals, or actual users?— do note that Nudge requires macOS 11 - 12 at minimum because of the reliance on Swift UI.

If you're trying to help standard users perform a major upgrade, consider the "eraseInstall" project instead.

@erikng
Copy link
Member Author

erikng commented Mar 10, 2025

I'm open to it but with the caveat that macOS 12 and higher only then not run it on macOS 15 and higher or whenever that feature came out for standard users.

That said I don't have a need for it in our environment and no time to work on nudge right now so someone would have to build it.

It's far easier to go the route mentioned above.

@rustymyers
Copy link

I'll look at other projects for assisting users in major upgrades. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants