Ubuntu – How to restrict program access to other users

permissionsusers

I'm setting up a new user account, and I want to allow access to only certain programs for just that account. How would I go around doing that?

Best Answer

Here is a quick way to do it with firefox as an example:

  1. Create a group webusers
  2. change the rights of the firefox binary to 750 (root:rwx, webusers:r-x) and the ownership to root:webusers
  3. add all users who should be allowed to use firefox to the group webusers

You can, of course, create groups for all individual programs. Here are the commands for doing it.

sudo addgroup webusers
sudo chmod 750 /usr/bin/firefox
sudo chown root:webusers /usr/bin/firefox
sudo adduser alice webusers
sudo adduser bob webusers
Related Question