← 返回命令列表

Linux command

run0 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

run0 [command]

Example

run0 -u [username] [command]

Example

run0 -u [username] -g [group] [command]

说明

run0 elevates privileges without being a SUID binary. Unlike sudo, it authenticates via polkit and spawns commands through a systemd service, providing better security isolation. The tool is designed as a more secure alternative to sudo, avoiding the security concerns of SUID binaries while maintaining familiar privilege escalation semantics.

参数

-u, --user _user_
Run as specified user
-g, --group _group_
Run with specified group
--no-ask-password
Don't prompt for password
--machine _machine_
Execute on container/VM
-D, --chdir _path_
Change working directory before running
--setenv _NAME=VALUE_
Set environment variable for the invoked process
--background _color_
Change terminal background tint (set to empty to disable)
--nice _N_
Run command with adjusted scheduling priority

FAQ

What is the run0 command used for?

run0 elevates privileges without being a SUID binary. Unlike sudo, it authenticates via polkit and spawns commands through a systemd service, providing better security isolation. The tool is designed as a more secure alternative to sudo, avoiding the security concerns of SUID binaries while maintaining familiar privilege escalation semantics.

How do I run a basic run0 example?

Run `run0 [command]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -u, --user _user_ do in run0?

Run as specified user