Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 457660

Summary: >sys-apps/util-linux-2.21.2: mount nfs with exec always mount as noexec
Product: Gentoo Linux Reporter: Tomáš Chvátal (RETIRED) <scarabeus>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tomáš Chvátal (RETIRED) gentoo-dev 2013-02-15 06:32:50 UTC
As per Summary this is regression compared to 2.20 series.

The relevant fstab entry:
192.168.137.10:/data/ /home/data/ nfs4 intr,async,bg,exec,nosuid,user 0 0

Mount state:
192.168.137.10:/data/ on /home/data type nfs4 (rw,user=root,noexec,nosuid,nodev,intr,bg,addr=192.168.137.10,clientaddr=192.168.137.1)

Latest release (2.22.2) still shows the problem.
Comment 1 SpanKY gentoo-dev 2013-04-28 02:55:38 UTC
from the man page:

user  Allow an ordinary user to mount the filesystem.  The name of the mounting
      user is written to mtab so that he can unmount the filesystem again.  This
      option implies the options noexec, nosuid, and nodev (unless overridden by
      subsequent options, as in the option line user,exec,dev,suid).

in your mount option, you put "user" after "exec" which means it's the same as:
  intr,async,bg,exec,nosuid,noexec,nosuid,nodev
and you can see "exec" is clobbered by the "noexec" later