1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-15 19:56:13 +02:00
tldr/pages/linux/run0.md
2025-08-10 13:53:13 +03:00

447 B

run0

Elevate privileges interactively. Similar to sudo, but it's not a SUID binary, authentication takes place via polkit, and commands are invoked from a systemd service. More information: https://www.freedesktop.org/software/systemd/man/run0.html.

  • Run a command as root:

run0 {{command}}

  • Run a command as another user and/or group:

run0 {{[-u|--user]}} {{username|uid}} {{[-g|--group]}} {{group_name|gid}} {{command}}