You can change the permissions on just the MATLAB install.
If MATLAB is installed to /home/*squirly*/MATLAB
, you could run the command below to make it accessible to all users.
chmod -R a+rw /home/*squirly*/MATLAB
If you do not own the directory you will need to prepend the command with sudo
.
BONUS:
If you want to allow only some users to use MATLAB.
Make a group called matlab:
sudo groupadd matlab
Make matlab the group owner of the matlab install:
sudo chgrp -R matlab /home/*squirly*/MATLAB
Allow the group to read/write to the matlab directory:
sudo chmod -R g+rw /home/*squirly*/MATLAB
Add users who will use matlab to the matlab group:
sudo usermod -aG matlab *squirly*