GNU/Linux Debian Stretch Installing GKSu – QuickStart Guide
Hi! The Tutorial shows you Step-by-Step How Emulate GKSu in Debian Stretch 9.x GNU/Linux Desktop.
And GKSu for Debian Stretch is a Library that provides a Gtk+ Frontend to su and sudo.
Moreover, it supports login shells and preserving environment when acting as a su frontend. It is useful to Menu items or other Graphical Programs that need to ask a user’s Password to run another Program as another User.
Especially relevant: GKSu is NOT ANYMORE AVAILABLE, it has been definitively removed from Repos for SECURITY ISSUES concerns.
So see instead the: GKSu Alternative Pkexec.
Running Program
Hence to Run GUI App as another User on Linux
The General Command is:sudo pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY [MYPROGRAM]
Like:sudo pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/local/bin/hardinfo