You are not logged in.

#1 2011-09-12 23:03:32

turjuque
Member
Registered: 2011-08-29
Posts: 9

[SOLVED] Mount NTFS-3G with exec option in fstab

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? hmm

Last edited by turjuque (2011-09-13 02:03:06)

Offline

#2 2011-09-12 23:26:19

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] Mount NTFS-3G with exec option in fstab

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

#3 2011-09-12 23:46:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Mount NTFS-3G with exec option in fstab

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

#4 2011-09-13 00:20:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Mount NTFS-3G with exec option in fstab

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

#5 2011-09-13 02:01:48

turjuque
Member
Registered: 2011-08-29
Posts: 9

Re: [SOLVED] Mount NTFS-3G with exec option in fstab

Thanks man that was the issue

Marked as solved smile

Offline

#6 2011-09-13 02:55:34

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED] Mount NTFS-3G with exec option in fstab

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

Board footer

Powered by FluxBB