LinuxCommandLibrary

doas

Executes a command as another user.

TLDR

Run a command as root

$ doas [command]
copy


Run a command as another user
$ doas -u [user] [command]
copy


Launch the default shell as root
$ doas -s
copy


Parse a configuration file and check if the execution of a command as another user is allowed
$ doas -C [config_file] [command]
copy


Make doas request a password even after it was supplied earlier
$ doas -L
copy

Copied to clipboard