can not execute on mounted partition

recently i did a fresh install of 11.3 on an ext4 partition.
My data disk is a ext3 and the new system mounts it during boot.
I can write to it but i can not execute programs from this partition.

in fstab i can not find something like “noexec”
permissions of mount folder looks ok for me.

e.g. execute compiled “hello world”

me:~/datadisk> ./hello
bash: ./hello: Permission denied
me:~/datadisk>

hello-rwxr-xr-x owner: me

fstab:
/

dev/disk/by-id/ata-SAMS…827-part1 /home/me/datadisk ext3 user,acl,user_xattr 1 2

what should i do to make my programs on the mounted partition executable ?

dev/disk/by-id/ata-SAMS....827-part1 /home/op/SDB ext3 user,acl,user_xattr 1 2

Attribute ‘user’ implies ‘noexec’. Have a look at the manpage for mount.

:slight_smile: thank you
disabled mountable by user in fstab options and it works now

Were these settings the result of a default setup using ext3 partitions or was this done by the user (wally345) I wonder? (i.e. adding in the user option)

Partition option settings were set to: “user,acl,user_xattr”

I notice that on my home area, which is for the entire user section of /home, was set for an ext4 partition as just “acl,user_xattr” and no user is added.

I was trying to figure out just what user_xattr means and I found this definition:

To set extended attributes, you should add the user_xattr property to the relevant file systems in your /etc/fstab file. Also note that neither Reiser4 nor NFS support extended attributes, so the sqlite-based fallback will be used by default.

Thank You,

Can you try creating a simple “helloworld.sh” script like such:


#!/bin/sh

echo "hello world"


Then put this file on that mounted partition, change its permissions to +x and see if you can run it: ./helloworld.sh

Just to eliminate any weird linking issues.

Then put this file on that mounted partition, change its permissions to +x and see if you can run it: ./helloworld.sh

No need to do that. OP’s file system was effectively mounted ‘noexec’ because of the ‘user’ attribute.

@wally345: you did a good job giving the relevant information (i.e. the fstab entry) right in your first post. Maybe my answer was a bit short, but I thought it would put you on the right track – and it did.

vodoo:
I thought it would put you on the right track – and it did.

Yes, it did, (see my reply above )

twelveeighty:
see if you can run it: ./helloworld.sh

i asume doing so, will execute bash to proceed this script.
bash resides not on the mounted datadisk but in /bin/bash on the
systems “/” device.

jdmcdaniel3:
Were these settings the result of a default setup using ext3 partitions or was this done by the user (wally345) I wonder? (i.e. adding in the user option)

Yes, it’s possible i did it myself after installation. I think i did this always in past
on Opensuse <= 11.1, but i’m not sure

thank you for responses and suggestions