runuser
Verified for current stable LTS
Runuser Command: Run Command As Different User
Use for run command as different user with Runuser. Exact CLI syntax to run command as different user using Runuser.
When to use this: Use for run command as different user with Runuser.
Command Syntax
sudo runuser <user> -c '<command>' sudo runuser <user> -c '<command>' Live Command Builder
Final Command
sudo runuser <user> -c '<command>' Command Breakdown
-c- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to run command as different user 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 And Group sudo runuser <user> -g <group> -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 Grep Command: Print File Name And Line Number With Color Output grep -Hn --color=always "<search_pattern>" <path/to/file>