Skip to content

Commit 351f17f

Browse files
Managorfazlearefin
andauthored
pkexec: add page (#16347)
Co-authored-by: Fazle Arefin <[email protected]>
1 parent 9d9e270 commit 351f17f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

pages/linux/pkexec.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# pkexec
2+
3+
> Execute commands as another user.
4+
> Asks for password in a GUI if available.
5+
> More information: <https://polkit.pages.freedesktop.org/polkit/pkexec.1.html>.
6+
7+
- Run command as root:
8+
9+
`pkexec {{command}}`
10+
11+
- Switch user to root:
12+
13+
`pkexec`
14+
15+
- Run command as a specific user:
16+
17+
`pkexec --user {{username}} {{command}}`

0 commit comments

Comments
 (0)