GNU/Linux Debian Bullseye GKsu Alternative Guide
Hi! The Tip shows you How to use a GKsu Alternative in Debian Bullseye 11.x GNU/Linux Desktop.
The GKsu Alternative is pkexec a Tool that allows an Authorized User to execute PROGRAM as Another User.
If username is not specified, then the program will be executed as the Admin Super User, root.
Finally, this Setup is valid for all the Debian-based Distros like:
- Kali
- MX Linux
- Deepin
- Parrot
- antiX
- SparkyLinux
- Q4OS
- Vanilla OS
- Netrunner
- Voyager Debian
- MakuluLinux
- Elive
- LMDE
- Parsix (You may just need to Discover what’s the Parent Release)
Running Program
Hence to Run GUI App as another User on Debian
The General Command is:sudo pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY [MYPROGRAM]
Like:sudo pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/local/bin/hardinfo