Open osh opened 8 years ago
Even with code to not use sudo
if it does not exist. Does there still need to be a message generated (seems like a good idea) and what type of message is best?
This is not quite a fix, but I've made the sudo thing a config option. You can now do (in ~/.pybombs/config.yml):
config:
elevate_pre_args: [,]
and it will not use sudo.
I suggest also using a shell wrapper to pybombs to check for the sudo binary and current id
.
shell wrappers have the disadvantage of being non-portable.
We have a couple of things in place now:
autoconfig
subcommandelevate_pre_args
config optionI'm considering closing this issue. However, there are still some good ideas:
elevate_pre_args
value and better error output on failure.
it is assumed to be installed, no check is provided lack of sudo results in an unhappy execution failed error with no good explanation as to what failed
when installing on a minimal ubuntu docker this becomes an issue quickly