system enabled community medium v1.0.0

su

Run commands with substitute user credentials; can spawn a shell.

📋 Live Preview
su
su

Sandbox: execFile · Timeout: 30s

Capabilities

security.privilege-escalation.shell

Contract

Outputs

process.output

Command execution output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory16 MB
Networknone
Disk I/Olow

Examples

Spawn an interactive shell (sudo)

su -c /bin/sh

Documentation

su

su is a command-line utility. Run a shell with substitute user and group IDs.

References