I am having some troubles while trying to run Matlab R2013 on Ubuntu 15.04 (the same problem happens in 14.04 and 12.04 versions). When I try to run in from the terminal or using the Matlab icon, I get the following error message:
BUT if I run it as super user, it works fine, but I get several other problems with that, for example, the applications that I developed in Matlab don't run.
What can I do in order to run Matlab as a regular user?
Thanks in advance,
The error message is clearly indicating an error with your user's write permissions on the file mentioned.
Anytime you run an application that saves configuration information in the user's home directory using
sudo
, you run the risk that theroot
user will take ownership of those files/directories, making them unwriteable for your regular user when you then try to run the application withoutsudo
.Usually this can be fixed easily by restoring the intended ownership using the
chown
command e.g.or this specific case