-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
added password prompt support for machinectl #4849
Conversation
cc @None |
I assume the sanity test failed at the yaml lint step because of the polkit rule example. Can someone please help me and point me to some example on how to do this correctly. EDIT: |
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! Please add a changelog fragment.
This includes the review comments as well as changelog fragment. This also gives more information about the polkit rule.
changelogs/fragments/4849-add-password-prompt-support-for-machinectl.yml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have never used machinectl so I don't know whether the change is correct, but at least formally it looks ok :) If nobody complains, I'll merge this for 5.3.0.
I only use it when I need to use systemd's systemctl on the other account, since it starts a user session and so systemctl --user works correctly. |
SUMMARY
This allows the use of machinectl without being root by using the polkit auth dialog.
ISSUE TYPE
COMPONENT NAME
community.general.machinectl
ADDITIONAL INFORMATION
Example polkit rule in comments look strange, but I found no other example on how to include a multiline code snippet.