-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Force admin #121
Comments
You can use this package to check for admin permissions and act according to the result. |
is-elevated already does that. I'm looking for a package that automatically restarts the script with elevated permissions. |
I think "restart the script" depends a lot on how it was started in the first place. Is it Trying to restart itself might be problematic or make wrong assumptions. |
I agree, restart the script is just too broad. I believe it's better to implement it on a project basis rather than a package. |
For modules that require administrator permissions to function, for example, to execute a restricted shell command, there should be an easy way to check for elevated permissions and restart the application with them if needed.
The text was updated successfully, but these errors were encountered: