Reputation: 101
I am trying to open matlab on Ubuntu 12.04 On typing ./matlab once I am in the folder containing matlab, I get the following message:
bash: ./matlab: Permission denied.
What could the problem be? Is it because matlab is not an executable file?
I tried running this first but it doesn't seem to have made a difference:
chmod +x /media/DATA-1/bin/matlab
(I checked the permissions tab on the file, and it doesn't let me mark 'Allow executing file as program'.) Thanks in advance for the help.
Upvotes: 0
Views: 6514
Reputation: 2619
It looks like you are running matlab on a mounted drive. By default linux mount drives with no-execute permission. That is why you are unable to mark the execute permission field.
To get around it, either copy the whole matlab directory to your home folder or remount the drive with execute permissions. To do the latter take a look at first 3 links on this google search- https://www.google.co.in/search?q=mounting+a+drive+with+execute+permissions&ie=utf-8&oe=utf-8&gws_rd=cr&ei=i27QVI7zAZbV8gXw7oKgCg
Upvotes: 2