I defined 2 users:
- one with admin privilege (lets call it
admin) with sudo right. - a 2nd one without any privilege (lets call it
normaluser)
and I configure the autologin on this 2nd usernormaluser.
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

normaluseris sometimes used by someone who shouldn't be able to run commands asroot, then makingnormalusera non-administrator definitely improves security. The perils of giving someone a user account but not letting them know their own password go far beyond Boris's situation in hassle and complexity. If you want a full explanation of why that is problematic, I suggest posting a new question, but 3 of the reasons are that a user should be able to lock and unlock the screen, log out and back in with a different session type, and decryptecryptfsdata. – Eliah Kagan Jul 17 '12 at 21:05normaluserandadminusersetting is the golden rule. – Boris Jul 17 '12 at 21:14normaluseraccount for everyday work andadminaccount for performing administrative tasks, which does not really improve anything. On a multi-user machine this totally makes sense. – Sergey Jul 17 '12 at 21:57