You are not logged in.
I installed this AUR package for nfts-3g fuse support
https://aur.archlinux.org/packages.php?ID=49961
I can mount with exec permission with :
sudo mount /dev/sdb2 -o exec,users,rw
but the same parameters in /etc/fstab don't work and the executable bit is disabled
/dev/sdb2 on /media/Jeux type fuseblk (rw,noexec,nosuid,nodev,allow_other,blksize=4096,user=clement)
in fstab:
/dev/sdb2 /media/Jeux ntfs-3g rw,exec,users 0 0
What am I doing wrong?
Last edited by turjuque (2011-09-13 02:03:06)
Offline
NTFS doesn't support POSIX file permissions. I don't think FUSE or NTFS-3G do anything about that.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Not sure if ntfs-3g is different from vfat wrt posix file permissions, but if I mount my fat32 formatted pendrive w/ noexec, I can't run scripts of it, while with exec option I can.
I'm not using fuse and I'm not using fstab to mount it.
Edit: If you mount it by hand, does it have ntfs of fuse filesystem type?
Last edited by karol (2011-09-13 00:20:44)
Offline
I decided to bump because this is likely the solution:
http://www.tuxera.com/community/ntfs-3g-faq/
User mounted partitions, e.g. when using the ‘user’ or ‘users’ mount options in the /etc/fstab file, are done with the ‘noexec’ mount option by default for security reasons.
Solution: Add the ‘exec’ mount option to the end of the mount options. It’s important that the option to be the last one, otherwise other mount option can over judge its effect.
Offline
Thanks man that was the issue
Marked as solved
Offline
Another way is to set the umask when you mount the drive.
My fstab for a backup external usb drive:
UUID=9C38D46038D43B4A /mnt/usb-windows ntfs-3g noauto,user,relatime,gid=100,umask=0022 0 0
Offline