Sudo and graphics applications.
Sometimes we run certain applications that may be potentially unsafe. For example firefox. A program running under the rights of a local user can cause the disclosure of data from its home directory. Here you can add mountains of unsafe applications running under Wine - for example, IE 5/6.
In addition to security aspects, there are others:
- Launching a program with a different configuration than configured by the current user:
- ff for browsing porn sites through proxies from work
- other programs with global settings without profiles that you need to work with immediately and anyway
- Quick access to bookmarks, documents, mail in another account
- Come up with your own :)
Maybe some of you have already encountered this:
The reason for this behavior is the lack of information needed to connect to the X server.
To run programs normally, a minimum is required:
gksudo -k -u user_name eval $ TERM; env TERM = 'xterm' DISPLAY = ': 0.0' “firefox”;
For Debian-based, there is a slightly outdated, but quite functional package with many features for launching graphical applications: sux ,
In addition to security aspects, there are others:
- Launching a program with a different configuration than configured by the current user:
- ff for browsing porn sites through proxies from work
- other programs with global settings without profiles that you need to work with immediately and anyway
- Quick access to bookmarks, documents, mail in another account
- Come up with your own :)
Maybe some of you have already encountered this:
sudo -u guest firefox
No protocol specified
Error: cannot open display: :0.0
The reason for this behavior is the lack of information needed to connect to the X server.
To run programs normally, a minimum is required:
gksudo -k -u user_name eval $ TERM; env TERM = 'xterm' DISPLAY = ': 0.0' “firefox”;
For Debian-based, there is a slightly outdated, but quite functional package with many features for launching graphical applications: sux ,