runuser
Verified for current stable LTS
Runuser Command: Run Command As Different User And Group
Use for run command as different user and group with Runuser. Exact CLI syntax to run command as different user and group using Runuser.
When to use this: Use for run command as different user and group with Runuser.
Command Syntax
sudo runuser <user> -g <group> -c '<command>' sudo runuser <user> -g <group> -c '<command>' Live Command Builder
Final Command
sudo runuser <user> -g <group> -c '<command>' Command Breakdown
-g- Command Option
- Tool-specific option used by this command invocation.
-c- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to run command as different user and group using Runuser.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Runuser Command: Preserve Entire Environment Of Root
sudo runuser <user> -p -c '<command>' Runuser Command: Run Command As Different User sudo runuser <user> -c '<command>' Runuser Command: Specify Shell For Running Instead Of Default sudo runuser <user> -s </bin/sh> Runuser Command: Start Login Shell As Specific User sudo runuser <user> -l Bun Remove Command: Remove Global Package bun remove -g <package_name>