commands.sh

pkexec

linux

Execute commands as another user. Asks for password in a GUI if available. See also: `sudo`, `run0`, `doas`.

More info →

Examples (3)

Run command as root

Switch user to root

Run command as a specific user

pkexec --user username command
made by @shridhargupta | data from tldr-pages