0

I installed MATLAB in /usr/local. Now when I try to launch it normally from dash or by typing matlab in terminal, it starts up and then gives an error that says:

Internal error: No write permission on directory...

But it launches when I run it using sudo. I don't want to run it as root. I give a recursive write permission to .matlab directory with sudo chmod -R 776 /home/uname/.matlab command. Then I tried launch matlab from terminal using command matlab. It terminated with massage :MATLAB is exiting because of fatal error.

Sarath
  • 33

1 Answers1

1

chmod is just change mode so that you can update your read/write/delete permissions. chown is like a main-gate or encapsulation. Even though, you had

chmod a+rwx <your .matlab folder>/-R

it doesn't launch matlab because you can't reach inside unless you take ownership of that .matlab folder. So,

change the shell as a root, and take ownership as below:

root@upg:~# chown username:groupname <your_matlab_folder>

Ownership is giving system to access (chown is your answer here). Giving read/write/delete actions is using chmod.