GNU/Linux Ubuntu GKsu Alternative Guide
Hi! The Tip shows you How to use a GKsu Alternative in Ubuntu GNU/Linux Desktops.
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 Ubuntu-based Distros like:
- Linux Mint
- Zorin OS
- Lubuntu
- Elementary OS
- Kde Neon
- Pop_OS!
- Xubuntu
- Linux Lite
- Bodhi
- Puppy
- Kubuntu
- LXLE
- Trisquel
- Voyager Ubuntu
- feren OS
- Peppermint
- Linux Ultimate Edition (You may just need to Discover what’s the Parent Release)
Running Program
Hence to Run GUI App as another User on Ubuntu
The General Command is:sudo pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY [MYPROGRAM]
Like:sudo pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/local/bin/hardinfo