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

Clash 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
14.04 java eclipse
add a comment |Â
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
14.04 java eclipse
1
Please update your question with the output ofls -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.shwill do that. Alternative you can run it with bash (or any other shell) asbash /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
add a comment |Â
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
14.04 java eclipse
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
14.04 java eclipse
edited May 9 at 9:05
asked May 9 at 8:56
MBaev
204
204
1
Please update your question with the output ofls -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.shwill do that. Alternative you can run it with bash (or any other shell) asbash /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
add a comment |Â
1
Please update your question with the output ofls -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.shwill do that. Alternative you can run it with bash (or any other shell) asbash /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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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.shwill do that. Alternative you can run it with bash (or any other shell) asbash /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