mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
20 lines
584 B
Plaintext
20 lines
584 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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.
|
|
> See also: `sudo`, `pkexec`, `doas`.
|
|
> More information: <https://www.freedesktop.org/software/systemd/man/latest/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}}`
|