瀏覽代碼

run0: add page (#13263)

* run0: add page

* run0: add backticks around systemd

Co-authored-by: spageektti <git@spageektti.cc>

---------

Co-authored-by: spageektti <git@spageektti.cc>
Lena 8 月之前
父節點
當前提交
cbc9d663cf
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      pages/linux/run0.md

+ 13 - 0
pages/linux/run0.md

@@ -0,0 +1,13 @@
+# 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/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}}`