1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 09:15:22 +02:00
tldr/pages/linux/pkexec.md
Managor 351f17f202
pkexec: add page (#16347)
Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>
2025-05-03 18:40:18 +03:00

17 lines
327 B
Markdown

# pkexec
> Execute commands as another user.
> Asks for password in a GUI if available.
> More information: <https://polkit.pages.freedesktop.org/polkit/pkexec.1.html>.
- Run command as root:
`pkexec {{command}}`
- Switch user to root:
`pkexec`
- Run command as a specific user:
`pkexec --user {{username}} {{command}}`