For security it is wise to have secure files and apps as a separate user to your browser. That way any closed source browser extensions you have don't have access to your bitcoin wallet for example.
I use /etc/sudoers.d/example:
insecureUser ALL = (secureUser) NOPASSWD: /usr/bin/privateApp
...and then run it using
sudo -u secureUser /usr/bin/privateApp
But trying to make an icon shortcut to sudo -u secureUser /usr/bin/privateApp doesn't work unless I check the box "run in a terminal". Why? Is this a bug? Is there a way round it, maybe even a workaround to prevent terminals being open everywhere?
Last edited by jago25_98 (2014-01-13 09:05:05)
You need to remember that sudo is a text app, so it needs a terminal. What you want to use is a GUI version of sudo/su. Many distros use gksudo, although Fedora (which I use) prefers beesu.
Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.