LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 01-02-2018, 06:00 AM   #1
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 537

Rep: Reputation: 28
Execute permission denied on NFS share


I have a file server running Open Media Vault. For now I am only using it as an NFS server.

I am getting Permission Denied when trying to execute a binary file on the server.

/etc/fstab has
Code:
192.168.1.103:/export/devel    /mnt/Share/devel     nfs  defaults,nofail,exec    0 0
but /etc/mtab shows
Code:
192.168.1.103:/export/devel /mnt/Share/devel nfs rw,nosuid,nodev,noexec,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.103,mountvers=3,mountport=32941,mountproto=udp,local_lock=none,addr=192.168.1.103 0 0
Where does the noexec come from? A policy somewhere?
I'm using LinuxMint 18.3. My ODROID XU4 running its default Linux distro does not have the problem.

Last edited by CollieJim; 01-02-2018 at 10:28 AM. Reason: Clarify XU4's OS
 
Old 01-03-2018, 02:27 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 10,898

Rep: Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241
you may try to remount, probably that will give some additional info.
 
Old 01-03-2018, 07:51 AM   #3
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 537

Original Poster
Rep: Reputation: 28
I tried
Code:
/ # umount /mnt/NetShare/devel
/ # mount /mnt/NetShare/devel
and got the same thing (no surprise).
Then I tried
Code:
/ # cat /etc/mtab | grep devel -
192.168.1.103:/export/devel /mnt/NetShare/devel nfs rw,nosuid,nodev,noexec,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.103,mountvers=3,mountport=32941,mountproto=udp,local_lock=none,addr=192.168.1.103 0 0
/ # umount /mnt/NetShare/devel
/ # mount -o exec -t nfs 192.168.1.103:/export/devel /mnt/NetShare/devel/
/ # cat /etc/mtab | grep devel -
192.168.1.103:/export/devel /mnt/NetShare/devel nfs rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.103,mountvers=3,mountport=32941,mountproto=udp,local_lock=none,addr=192.168.1.103 0 0
/ #
This got rid of the noexec.

If I cannot find what is overriding exec in fstab I will put a mount command in /etc/bash.bashrc with a test so it only gets done once.
 
Old 01-03-2018, 08:22 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 10,898

Rep: Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241
I do not really understand, but probably (in fstab):
Code:
192.168.1.103:/export/devel    /mnt/Share/devel     nfs  defaults,nofail,exec    0 0
moving exec to the front may help:
192.168.1.103:/export/devel    /mnt/Share/devel     nfs  exec,defaults,nofail    0 0
 
Old 01-03-2018, 08:38 AM   #5
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 537

Original Poster
Rep: Reputation: 28
It made no difference. I tried exec in front, and defaults at the end or missing. /etc/mtab showed the same for all cases.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] cannot execute binary on directory mounted by nfs (Debian wheezy) Permission denied. kaz2100 Debian 4 02-16-2012 08:12 PM
[SOLVED] NFS share permission denied avtandil_k Linux - Networking 4 03-23-2010 02:34 PM
Permission denied trying to mount nfs share leupi Linux - Networking 1 07-30-2007 01:32 AM
nfs share: permission denied Kropotkin *BSD 11 01-10-2007 08:15 AM
Mounting an nfs share - Permission Denied doctorwebbox Linux - Networking 5 05-30-2005 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 01:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration