-
Notifications
You must be signed in to change notification settings - Fork 119
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
lib/common.sh has passwordless sudo check #1288
Comments
/triage accepted |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
/lifecycle frozen |
The passwordless sudo check in
lib/common.sh
is really idiotic. It requires you to have passwordless sudo in the first place, and secondly it needs to be configured the exact way that it then checks.Instead, the script should just check that it is running as root, and should not run anything with sudo. Then it is up to user to run the top-level command with sudo, which allows it to have password or configure the passwordless in any way user wants.
In general, any
lib
should not execute code, but only define functions for scripts to execute.The text was updated successfully, but these errors were encountered: