From 351f17f2025f1964b8321635ecc5403e37fe7e3a Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sat, 3 May 2025 18:40:18 +0300 Subject: [PATCH] pkexec: add page (#16347) Co-authored-by: Fazle Arefin --- pages/linux/pkexec.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages/linux/pkexec.md diff --git a/pages/linux/pkexec.md b/pages/linux/pkexec.md new file mode 100644 index 0000000000..5d35bec0f4 --- /dev/null +++ b/pages/linux/pkexec.md @@ -0,0 +1,17 @@ +# pkexec + +> Execute commands as another user. +> Asks for password in a GUI if available. +> More information: . + +- Run command as root: + +`pkexec {{command}}` + +- Switch user to root: + +`pkexec` + +- Run command as a specific user: + +`pkexec --user {{username}} {{command}}`