system enabled community medium v1.0.0

sg

Execute command with a different group ID; can spawn an interactive shell.

📋 Live Preview
sg
sg

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, unprivileged)

sg $(id -ng)

Documentation

sg

sg is a command-line utility. Switch group ID utility that can spawn a shell; can also spawn an interactive shell.

References