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:
parent
9d9e270cf7
commit
351f17f202
1 changed files with 17 additions and 0 deletions
17
pages/linux/pkexec.md
Normal file
17
pages/linux/pkexec.md
Normal 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}}`
|
Loading…
Add table
Reference in a new issue