On Sun, 2012-02-26 at 16:35 +0000, Tony Houghton wrote:
> I tried "hand mounting" as per message #72, I don't think that's the
> cause. It seems to be the "user" option that disables exec. Without
> "user" I get exec permissions whether I mount using /etc/fstab or give a
> full mount command, with the "user" option I get no exec.
Well yes, 'user' implies 'noexec,nodev,nosuid'. You have to put 'exec'
*after* 'user' to override that. Maybe mount.nfs behaved differently in
the past, but if so that was a bug.
However Jakub and Luc apparently had these options in the right order.
I tested the conversion of option strings by running:
strace -e mount mount.nfs -o <options> <source> <mountpoint>
This shows the mount() call made to the kernel along with the mount
flags (names beginning 'MS_'), which should not include MS_NOEXEC. when
I run mount.nfs with options 'users,async,exec' or 'rw,user,exec,auto' I
see mount.nfs using the correct mount flags, MS_NOSUID|MS_NODEV.
Jakub, Luc, do you get the same results?
Ben.
--
Ben Hutchings
Q. Which is the greater problem in the world today, ignorance or apathy?
A. I don't know and I couldn't care less.
Attachment:
signature.asc
Description: This is a digitally signed message part