Skip to content

Also try run0 when sudo/pkexec are not found#182

Merged
mvo5 merged 2 commits into
mvo5:masterfrom
bluca:run0
May 3, 2026
Merged

Also try run0 when sudo/pkexec are not found#182
mvo5 merged 2 commits into
mvo5:masterfrom
bluca:run0

Conversation

@bluca
Copy link
Copy Markdown
Contributor

@bluca bluca commented May 3, 2026

run0 also allows running commands as other users. If neither sudo nor pkexec are found, try run0.

https://www.freedesktop.org/software/systemd/man/latest/run0.html

bluca added 2 commits May 3, 2026 18:21
polkitd and pkexec are available as packages since bookworm (debian 12)
and jammy (ubuntu 22.04), so the alternatives can be dropped now
run0 also allows running commands as other users. If neither
sudo nor pkexec are found, try run0.

https://www.freedesktop.org/software/systemd/man/latest/run0.html
Copy link
Copy Markdown
Owner

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\o/ Love it! Thank you!

@mvo5 mvo5 merged commit a16dbb2 into mvo5:master May 3, 2026
1 check passed
@bluca bluca deleted the run0 branch May 3, 2026 19:18
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

Successfully merging this pull request may close these issues.

2 participants