Active Topics

 


Reply
Thread Tools
Posts: 23 | Thanked: 0 times | Joined on Feb 2010
#1
Hi guys,

here is the situation, I tried to download file *.sh from my email then in the console typed chmod +x *.shin order to make it executable, but nothing happened, and the other thing is that when i tried ./*.sh it shows permission denied

any ideas?
 
Posts: 12 | Thanked: 16 times | Joined on Aug 2009
#2
Originally Posted by Hcattaneo View Post
Hi guys,

here is the situation, I tried to download file *.sh from my email then in the console typed chmod +x *.shin order to make it executable, but nothing happened, and the other thing is that when i tried ./*.sh it shows permission denied

any ideas?
Try .<space><yourscript>.sh instead or bash <yourscript>.sh

The FAT filesystems e.g. ~/MyDocs/ do not support permissions.
 
Posts: 23 | Thanked: 0 times | Joined on Feb 2010
#3
great. It works. Thanks ))
 
crabsody's Avatar
Posts: 63 | Thanked: 12 times | Joined on Feb 2010 @ Thessaloniki Greece
#4
I don't have a script but an executable (I compiled it) which I can't execute. My exec has -rw-r--r-- permissions which I can't change. I try either ./MyExec or run-standalone.sh ./MyExec but both of them return Permission denied. Does anyone know what is wrong. Thanks in advance
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#5
Originally Posted by crabsody View Post
I don't have a script but an executable (I compiled it) which I can't execute. My exec has -rw-r--r-- permissions which I can't change. I try either ./MyExec or run-standalone.sh ./MyExec but both of them return Permission denied. Does anyone know what is wrong. Thanks in advance
You need to move it off the FAT32 filesystem - you can't execute programs from there.
 

The Following 2 Users Say Thank You to Rob1n For This Useful Post:
crabsody's Avatar
Posts: 63 | Thanked: 12 times | Joined on Feb 2010 @ Thessaloniki Greece
#6
Originally Posted by Rob1n View Post
You need to move it off the FAT32 filesystem - you can't execute programs from there.
I see. But where should I move it in order to execute it? I move it to /home which according to /etc/fstab is mounted as ext3 but I have the same problem
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#7
Originally Posted by crabsody View Post
I see. But where should I move it in order to execute it? I move it to /home which according to /etc/fstab is mounted as ext3 but I have the same problem
/home is fine - you should now be able to change the permissions on it to allow execution.
 

The Following User Says Thank You to Rob1n For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 14:06.