Friday, May 3, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 3964  / 3 Years ago, mon, july 12, 2021, 8:39:10

I'm trying to install MATLAB2012 on my Ubuntu machine, and, in order to do that I have to give the installation program the root rights, this is what I've tried :



root@Engine:/media/ENGINE# ./install
bash: ./install: Permission denied


I've tried also gsku :



root@Engine:/media/ENGINE# gksu ./install


Nothing happens.



Thanks for your help!


More From » installation

 Answers
1

If you still get the Permission denied message when you try to run something while you are root, this means that the program you are trying to run doesn't have the executable bit, and thus it isn't allowed to run as program, it is consider as a simple file by the system.



The gksu you gave there while you were root wouldn't solve any problem, you were root, and root is allowed to do anything.



So, in order to give it the executable bit:



chmod +x install


Now, the system recognizes that the file 'install' is not a simple file, but it is actually a program. After that, you can successfully run:



./install


And you should be OK :)



PS: I myself remember, when I was not used to Linux as well, to be very confused by this Permission denied message while I was root. I mean, I was root, who denies me to do anything ? I am the lord of this land :P


[#36292] Tuesday, July 13, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cupwire

Total Points: 365
Total Questions: 126
Total Answers: 125

Location: Malaysia
Member since Thu, Feb 16, 2023
1 Year ago
;