I defined 2 users:
- one with admin privilege (lets call it
admin) with sudo right.
- a 2nd one without any privilege (lets call it
and I configure the autologin on this 2nd user
So when I have to run an application with super user privilege, I open a terminal and:
su admin sudo anyapplication ...
It works fine, allowing to do not change the user session.
But what should I do if the application needs to run with a GUI (Graphic User Interface) ?
I though about that
su admin gksu anyapplication ...
but I get
** (gksu:9122): WARNING **: the connexion is closed No protocol specified No protocol specified (gksu:9122): Gtk-WARNING **: cannot open display: :0.0