I defined 2 user accounts:
- one with admin privilege (with
sudo
right) => 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
normaluser
is sometimes used by someone who shouldn't be able to run commands asroot
, then makingnormaluser
a 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 decryptecryptfs
data. – Eliah Kagan Jul 17 '12 at 21:05normaluser
andadminuser
setting is the golden rule. – Boris Jul 17 '12 at 21:14normaluser
account for everyday work andadmin
account 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