Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#33999 - [util-linux] Mount ignores fstab exec-flag if user-flag present when mounting nfs
Attached to Project:
Arch Linux
Opened by Tuomas Jäntti (qwertypoke) - Sunday, 24 February 2013, 16:48 GMT
Last edited by Dave Reisner (falconindy) - Friday, 14 June 2013, 11:53 GMT
Opened by Tuomas Jäntti (qwertypoke) - Sunday, 24 February 2013, 16:48 GMT
Last edited by Dave Reisner (falconindy) - Friday, 14 June 2013, 11:53 GMT
|
DetailsDescription:
When mounting nfs filesystem with user-flag enabled in fstab, exec-flag is ignored and the mounted share does not permit executing files regardless of file permissions. This seems to be a duplicate of this. https://bugzilla.redhat.com/show_bug.cgi?id=769636 It seems to have been fixed once already. But a Redhat user reports that is is back. I have not used nfs before so I do not know how it has worked in older versions. Additional info: * package version(s) util-linux 2.22.2-1 * config and/or log files etc. Relevant line in /etc/fstab: lacie-d2:/shares/media /mnt/nfs/lacie-d2/media nfs rsize=8192,wsize=8192,timeo=14,intr,_netdev,exec,user 0 0 Steps to reproduce: [root@rotta tuomas]# mount /mnt/nfs/lacie-d2/media [root@rotta tuomas]# mount ... lacie-d2:/shares/media on /mnt/nfs/lacie-d2/media type nfs (rw,nosuid,nodev,noexec,relatime,vers=3,rsize=8192,wsize=8192,namlen=255,hard,proto=tcp,timeo=14,retrans=2,sec=sys,mountaddr=192.168.100.23,mountvers=3,mountport=48204,mountproto=udp,local_lock=none,addr=192.168.100.23,_netdev,user) ... Noexec flag is reported by mount and files cannot be executed. Noexec is also active when executed as normal user: $ mount /mnt/nfs/lacie-d2/media This does not help: # mount -o exec /mnt/nfs/lacie-d2/media/ or this: # mount -o nouser /mnt/nfs/lacie-d2/media/ Noexec is disabled when nouser and exec are given as options # mount -o exec,nouser /mnt/nfs/lacie-d2/media/ or if user-flag is removed from fstab |
This task depends upon
Closed by Dave Reisner (falconindy)
Friday, 14 June 2013, 11:53 GMT
Reason for closing: Not a bug
Additional comments about closing: Order matters
Friday, 14 June 2013, 11:53 GMT
Reason for closing: Not a bug
Additional comments about closing: Order matters
Is it still a problem with 2.23? If so, could you report this upstream, as it does not appear to be a packaging problem.
I am no faster. Finally upgraded my system. The bug is still present in 2.23.1-2
I emailed this bug report to the util-linux maintainer: Karel Zak, kzak@redhat.com
https://github.com/karelzak/util-linux/commit/a4c0cc75ff9744299f108c259efab1bd30c8007a
We switched implementations some time ago. Fedora did as well, which is why the RHBZ bug was pinged again.
>>
You have to use
user,exec
it means "exec" after the "user" option. I'll update man page to make
it more obvious that the last option wins.
<<
Changing the order works. In my opinion this bug might be marked as solved.