no exec permission on my data partition
I've got a dedicated partition for all my data (music, films, etc). There's also
a directory with my scripts there. Whenever I learn bash or python I put those scripts to this partition. It is mounted in the following way: Code:
/dev/sda10 /home/sycamorex/data ext3 auto,rw,exec,user 0 0 I always get the 'permission denied' error. I even granted a+x permissions on the script directories and files, but still without any success. Code:
-rwxrwxrwx 1 sycamorex sycamorex 418 2008-09-03 23:59 ftp_file.py |
SE Linux context maybe (check syslog/auditd.log)?
|
Thanks for your reply. Selinux is in the permissive mode, so it shouldn't be in the way. I've checked all the logs in /var/log
and there was no mention of anything that could be related to it:( It applies both to debian and fedora. Perhaps it's just a security feature built in the kernel? But then, what would be the fstab 'exec' option for? |
Quote:
|
thanks for the reply. I got it. While I was preparing the strace output, it dawned on me.
Although I have got appropriate shebangs in the scripts, in order to execute scripts from the data partition I need to specify the correct interpreter: python ./script.py bash ./script Why is that? I can live with it, but is it possible to resolve it? |
Hmm. Needing to use "./" ("here") is typical for $PATH issues but it doesn't explain the permission problem. At least not to me :-]
|
Actually, I don't need to use './' (sorry, I didn't check it:)), however I need to specify the interpreter:
Code:
xtd8865@debtop:~/data$ ./my_script Code:
xtd8865@debtop:~/data$ cat my_script Code:
xtd8865@debtop:~/data$ strace ./my_script Code:
xtd8865@debtop:~/data$ strace ./my_script.py |
Nope. Doesn't ring a bell. Must be a fix so simple my mind refused to cache it. Sorry.
|
Quote:
Can anyone try to execute a simple script from another partition? thanks |
What permissions do you have set for the directory you're mounting on? I have no problems running scripts from my "/data" disk.
|
Me neither. The perms are in the OP.
|
Quote:
|
Quote:
|
Quote:
defaults Uses the default options that are rw, suid, dev, exec, auto, nouser, and async. From: http://www.tuxfiles.org/linuxhelp/fstab.html Sorry for diverting the thread. |
I remounted /data with 'defaults' as the only option in column 4 and it works like charm. Why on earth didn't I use 'defaults'
in the first place? thanks |
All times are GMT -5. The time now is 08:39 PM. |