doas
Verified for current stable LTS
Doas Command: Run Command As Another User
Use for run command as another user with Doas. Exact CLI syntax to run command as another user using Doas.
When to use this: Use for run command as another user with Doas.
Command Syntax
doas -u <user> <command> doas -u <user> <command> Command Breakdown
-u- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to run command as another user using Doas.
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
Doas Command: Launch Default Shell As Root
doas -s Doas Command: Parse Config File Check Command Permission doas -C <path/to/config_file> <command> Doas Command: Parse Configuration File And Check Permissions doas -C <path/to/config_file> <command> Doas Command: Request Password Again doas -L Doas Command: Run Command As Root doas <command>