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

Force admin #121

Open
Richienb opened this issue May 15, 2020 · 4 comments
Open

Force admin #121

Richienb opened this issue May 15, 2020 · 4 comments

Comments

@Richienb
Copy link

Richienb commented May 15, 2020

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.

@denizariyan
Copy link

You can use this package to check for admin permissions and act according to the result.

@Richienb
Copy link
Author

Richienb commented Oct 2, 2020

is-elevated already does that. I'm looking for a package that automatically restarts the script with elevated permissions.

@fregante
Copy link

fregante commented Oct 4, 2020

I think "restart the script" depends a lot on how it was started in the first place. Is it ./scripts.js? node script.js? npm run script? What if it was run with specific ENV or through other commands?

Trying to restart itself might be problematic or make wrong assumptions.

@denizariyan
Copy link

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.

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

3 participants