Run commands in transient systemd services; can execute arbitrary commands and spawn shells.
systemd-run systemd-run Sandbox: execFile · Timeout: 30s
security.execution.command security.privilege-escalation.shell Outputs
process.output Command execution output
process_spawn Produces
process.output| Resource | Value |
|---|---|
| CPU | low |
| Memory | 16 MB |
| Network | none |
| Disk I/O | low |
Execute arbitrary commands (sudo)
systemd-run /path/to/command Spawn an interactive shell (sudo)
systemd-run -S Spawn an interactive shell (sudo)
systemd-run -t /bin/sh systemd-run is a command-line utility. Run commands in transient systemd scopes/services.