Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
The problem is that I can't execute any script stored on that partition.
I always get the 'permission denied' error. I even granted a+x permissions on the script directories and files, but still without any success.
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?
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?
Well, this is something I've never checked, so pardon my naivete. If you create a directory as read only and mount to it as RWX, does it still wind up as read only or are the permissions expanded by the mount?
Well, this is something I've never checked, so pardon my naivete. If you create a directory as read only and mount to it as RWX, does it still wind up as read only or are the permissions expanded by the mount?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.