Sometimes we run certain applications that may be potentially unsafe. For example firefox. A program running under local user rights may cause 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 the security aspects, there are others:
- Run the program, with a different configuration than configured under the current user:
- ff for browsing porn sites through a proxy from work
- other programs with global settings without profiles with which you need to work immediately and this way and that
- Quick access to bookmarks, documents, mail in another account
- Think of your own :)
Perhaps 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.
For the normal launch of programs will require a minimum:
gksudo -k -u user_name eval $ TERM; env TERM = 'xterm' DISPLAY = ': 0.0' "firefox";
')
For Debian-based, there is a slightly outdated, but quite workable package with many features for running graphical applications:
sux ,