-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Sudo support #190
Comments
Hi @znd4, A "short" update on this feature. I added elevated_ls:
command: "ls -l /root"
is_elevated: true
shutdown:
signal: 9 The way I feed the password to an elevated process is through And that works great and supports multiple retries, Unfortunately, this doesn't work for more than one process... It's specific to It looks like a consequence of how the system handles sudo and privilege escalation. This is a security feature to prevent race conditions and ensure that privilege escalation is handled safely. It took me so long to understand that it was not a bug in my code, but I didn't give up on this feature and I'm looking for workarounds. |
Released in v1.9.0 |
I tried this in devenv with
It asks for my password but after entering it I get |
Hi @RafaelKr, Please open a new issue with steps to reproduce it. |
Feature Request
Use Case:
I'd like to be able to manage processes that require elevated permissions (e.g.
kubectl port-forward 443:44
)Proposed Change:
Add an
admin
orsudo
flag. Whentrue
, run the configured command withsudo {rest of command}
in an embedded tty (so that user gets password retries).Who Benefits From The Change(s)?
Users who want to manage background processes with elevated permissions without elevating the entire
process-compose
process.Alternative Approaches
Prompt for an admin password and pipe it to
sudo
.The text was updated successfully, but these errors were encountered: