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

Hardcoded 'sudo' #19

Open
kunaltyagi opened this issue Jun 26, 2019 · 0 comments
Open

Hardcoded 'sudo' #19

kunaltyagi opened this issue Jun 26, 2019 · 0 comments

Comments

@kunaltyagi
Copy link

Currently, for windows and *nix, sudo is hardcoded.

This is a code smell because

  • it gives access to root for any application that runs after this on the terminal
  • permission request can be escalated on failure with a non-root access
  • udev rules can eliminate requirement of sudo on several platforms
  • it requires any application that uses this code to be launched with sudo for a non-interactive use which is not always possible
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

1 participant