Eclipse | Permission denied when trying to open sh file under Ubuntu

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I develop plug-in that works under Ubuntu. The plug-in is required to install a third party software with which it works. Installation directory is "user home" [System.getProperty("user.home")]



After installation, when I try to open the .sh file via java code from is throwing an exception -




java.io.IOException: Cannot run program >/home/mbaev/Tools/flasher/1.5.0/lua5.1.sh": error=13, Permission denied"




Where should be installed a third party software, after that i can run it without permissions? Why this directory have permissions by default?



Permissions info:




-rw-rw-r-- 1 mbaev mbaev 605 май 9 11:15 /home/mbaev/Tools/flasher/1.5.0//lua5.1.sh








share|improve this question


















  • 1




    Please update your question with the output of ls -l /home/mbaev/Tools/flasher/1.5.0/lua5.1.sh.
    – Soren A
    May 9 at 9:01










  • But I want to programmatically unarchive the third party software in user home dir and then start the .sh file programmatically without need any permissions, this is possible?
    – MBaev
    May 9 at 9:06










  • For a program to run directly, it needs execute rights. chmod +x /home/mbaev/Tools/flasher/1.5.0//lua5.1.sh will do that. Alternative you can run it with bash (or any other shell) as bash /home/mbaev/Tools/flasher/1.5.0//lua5.1.sh. That should work without execute-rights.
    – Soren A
    May 9 at 9:57







  • 1




    I resolved this issue with add permission setting when using unarchive tool
    – MBaev
    May 9 at 12:11














up vote
1
down vote

favorite












I develop plug-in that works under Ubuntu. The plug-in is required to install a third party software with which it works. Installation directory is "user home" [System.getProperty("user.home")]



After installation, when I try to open the .sh file via java code from is throwing an exception -




java.io.IOException: Cannot run program >/home/mbaev/Tools/flasher/1.5.0/lua5.1.sh": error=13, Permission denied"




Where should be installed a third party software, after that i can run it without permissions? Why this directory have permissions by default?



Permissions info:




-rw-rw-r-- 1 mbaev mbaev 605 май 9 11:15 /home/mbaev/Tools/flasher/1.5.0//lua5.1.sh








share|improve this question


















  • 1




    Please update your question with the output of ls -l /home/mbaev/Tools/flasher/1.5.0/lua5.1.sh.
    – Soren A
    May 9 at 9:01










  • But I want to programmatically unarchive the third party software in user home dir and then start the .sh file programmatically without need any permissions, this is possible?
    – MBaev
    May 9 at 9:06










  • For a program to run directly, it needs execute rights. chmod +x /home/mbaev/Tools/flasher/1.5.0//lua5.1.sh will do that. Alternative you can run it with bash (or any other shell) as bash /home/mbaev/Tools/flasher/1.5.0//lua5.1.sh. That should work without execute-rights.
    – Soren A
    May 9 at 9:57







  • 1




    I resolved this issue with add permission setting when using unarchive tool
    – MBaev
    May 9 at 12:11












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I develop plug-in that works under Ubuntu. The plug-in is required to install a third party software with which it works. Installation directory is "user home" [System.getProperty("user.home")]



After installation, when I try to open the .sh file via java code from is throwing an exception -




java.io.IOException: Cannot run program >/home/mbaev/Tools/flasher/1.5.0/lua5.1.sh": error=13, Permission denied"




Where should be installed a third party software, after that i can run it without permissions? Why this directory have permissions by default?



Permissions info:




-rw-rw-r-- 1 mbaev mbaev 605 май 9 11:15 /home/mbaev/Tools/flasher/1.5.0//lua5.1.sh








share|improve this question














I develop plug-in that works under Ubuntu. The plug-in is required to install a third party software with which it works. Installation directory is "user home" [System.getProperty("user.home")]



After installation, when I try to open the .sh file via java code from is throwing an exception -




java.io.IOException: Cannot run program >/home/mbaev/Tools/flasher/1.5.0/lua5.1.sh": error=13, Permission denied"




Where should be installed a third party software, after that i can run it without permissions? Why this directory have permissions by default?



Permissions info:




-rw-rw-r-- 1 mbaev mbaev 605 май 9 11:15 /home/mbaev/Tools/flasher/1.5.0//lua5.1.sh










share|improve this question













share|improve this question




share|improve this question








edited May 9 at 9:05

























asked May 9 at 8:56









MBaev

204




204







  • 1




    Please update your question with the output of ls -l /home/mbaev/Tools/flasher/1.5.0/lua5.1.sh.
    – Soren A
    May 9 at 9:01










  • But I want to programmatically unarchive the third party software in user home dir and then start the .sh file programmatically without need any permissions, this is possible?
    – MBaev
    May 9 at 9:06










  • For a program to run directly, it needs execute rights. chmod +x /home/mbaev/Tools/flasher/1.5.0//lua5.1.sh will do that. Alternative you can run it with bash (or any other shell) as bash /home/mbaev/Tools/flasher/1.5.0//lua5.1.sh. That should work without execute-rights.
    – Soren A
    May 9 at 9:57







  • 1




    I resolved this issue with add permission setting when using unarchive tool
    – MBaev
    May 9 at 12:11












  • 1




    Please update your question with the output of ls -l /home/mbaev/Tools/flasher/1.5.0/lua5.1.sh.
    – Soren A
    May 9 at 9:01










  • But I want to programmatically unarchive the third party software in user home dir and then start the .sh file programmatically without need any permissions, this is possible?
    – MBaev
    May 9 at 9:06










  • For a program to run directly, it needs execute rights. chmod +x /home/mbaev/Tools/flasher/1.5.0//lua5.1.sh will do that. Alternative you can run it with bash (or any other shell) as bash /home/mbaev/Tools/flasher/1.5.0//lua5.1.sh. That should work without execute-rights.
    – Soren A
    May 9 at 9:57







  • 1




    I resolved this issue with add permission setting when using unarchive tool
    – MBaev
    May 9 at 12:11







1




1




Please update your question with the output of ls -l /home/mbaev/Tools/flasher/1.5.0/lua5.1.sh.
– Soren A
May 9 at 9:01




Please update your question with the output of ls -l /home/mbaev/Tools/flasher/1.5.0/lua5.1.sh.
– Soren A
May 9 at 9:01












But I want to programmatically unarchive the third party software in user home dir and then start the .sh file programmatically without need any permissions, this is possible?
– MBaev
May 9 at 9:06




But I want to programmatically unarchive the third party software in user home dir and then start the .sh file programmatically without need any permissions, this is possible?
– MBaev
May 9 at 9:06












For a program to run directly, it needs execute rights. chmod +x /home/mbaev/Tools/flasher/1.5.0//lua5.1.sh will do that. Alternative you can run it with bash (or any other shell) as bash /home/mbaev/Tools/flasher/1.5.0//lua5.1.sh. That should work without execute-rights.
– Soren A
May 9 at 9:57





For a program to run directly, it needs execute rights. chmod +x /home/mbaev/Tools/flasher/1.5.0//lua5.1.sh will do that. Alternative you can run it with bash (or any other shell) as bash /home/mbaev/Tools/flasher/1.5.0//lua5.1.sh. That should work without execute-rights.
– Soren A
May 9 at 9:57





1




1




I resolved this issue with add permission setting when using unarchive tool
– MBaev
May 9 at 12:11




I resolved this issue with add permission setting when using unarchive tool
– MBaev
May 9 at 12:11















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1033941%2feclipse-permission-denied-when-trying-to-open-sh-file-under-ubuntu%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1033941%2feclipse-permission-denied-when-trying-to-open-sh-file-under-ubuntu%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Which professions warranted travel in Medieval times?

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error