maxruben wrote:it is possible to install a program that will only work for one of the two users.
If I understand your question correctly... Only the administrative user can install programs in the normal way, because he is a member of the sudo group.
But if you want to make installed programs accessible to only one user, that is possible.
One thing you can do is remove the program launcher from the menu of the restricted user. (That does not eliminate the ability to start the program from the command line.)
If you do not want the restricted user to have that ability, do this:
Log in as the administrative user.
Open a terminal and create a folder called bin in your home directory.
(Change "yourusername")
When that directory exists, it is automatically added to your "path" on startup.
As an example, let us say that you install the program "bluefish" and you want to restrict it to one user. In the terminal enter the command:
potus@wh ~ $ which bluefish
/usr/bin/bluefish
That tells me that bluefish is started by the bluefish link found in /usr/bin
In your file manager, open File System > /usr/bin and copy the bluefish link from /usr/bin to /home/
yourusername/bin
Then move the default bluefish link from /usr/bin to /var/tmp
Code: Select all
sudo mv /usr/bin/bluefish /var/tmp/
You can move it anywhere, but I like to save odd things in /var/tmp
EDIT: It would be just as easy to rename /usr/bin/bluefish to /usr/bin/bluefishBACK. That would work fine.
Now the restricted user no longer has access to that program, but the administrative user still does.