1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 07:15:27 +02:00

pkexec: add page (#16347)

Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>
This commit is contained in:
Managor 2025-05-03 18:40:18 +03:00 committed by GitHub
parent 9d9e270cf7
commit 351f17f202
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

17
pages/linux/pkexec.md Normal file
View file

@ -0,0 +1,17 @@
# 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}}`