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

Detect non-root when running launcher flare/doctor on the command-line #1734

Open
RebeccaMahany opened this issue Jun 3, 2024 · 2 comments

Comments

@RebeccaMahany
Copy link
Contributor

We have some checkups that do not work if flare/doctor is not run with elevated permissions. We want to detect if flare/doctor is being run without the necessary permissions and warn the user. If possible, we'd like to proceed by re-execing with elevated permissions; if not possible, we should print instructions for running the command correctly.

The implementation will be a little different on posix vs Windows. On posix, after warning the user, we can re-exec using something like sudo $0. We are not sure if this is possible on Windows.

@directionless
Copy link
Contributor

We may decide that the user experience of this isn't smooth, and the juice isn't worth the squeeze. Some initial experimentation is needed.

@RebeccaMahany
Copy link
Contributor Author

I think @zackattack01 did most of this issue in #1824

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants