I defined 2 user accounts:
- one with admin privilege (with
sudoright) => lets call itadminuser. - a 2nd one without any privilege => lets call it
normaluser
and I configure the autologin on this 2nd usernormaluser.
So when I open a normaluser session and want to run an application with admin privilege,
I open a terminal Ctrl+Alt+T and:
su adminuser
sudo anyapplication ...
It works fine, without having to quit the normaluser session (no need to open a adminuser session).
But what should I do if the application needs to run with a GUI (Graphic User Interface) ?
I though about that:
su adminuser
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