Solved

cannot nfs mount with exec

Posted on 2008-10-31
3
822 Views
Last Modified: 2013-12-16
I mount a remote directory via NFS through a home network (both the server and client are Fedora Linux 6), and have now realised I cannot run scripts on the mount. This seems to be due to the fact that it is mounted with the `noexec' option (the 'mount' command says so), though I didn't mean this to happen.

I put 'exec' option explicitly in the fstab file and re-mounted the directory, but it still remains non-executable. Would anybody advise what is preventing the executable mount???

Incidentally I put -rw option in the /etc/exports file on the NFS host.
0
Comment
Question by:yosato_uk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 22850102
Did you check the 'nosuid' mount option (just in case your scripts were flagged 'setuid' or 'setgid')?
0
 
LVL 8

Accepted Solution

by:
frashii earned 250 total points
ID: 22857855
Can you paste sanitized versions of /etc/fstab (client) and /etc/exports (host) ?

Can you unmount and remount it with the -vvv flag so that we can get some verbosity on the mount ?

umount /mnt/nfsmountpoint
mount -avvv

And paste that output as well ?

I'm trying to remember if something like SElinux can be configured to disallow remote executions on network shares as well. Are you running SELinux or Novell Apparmor or the like ?
0
 
LVL 8

Expert Comment

by:frashii
ID: 22958896
*ping*
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface There are many applications where some computing systems need have their system clocks running synchronized within a small margin and eventually need to be in sync with the global time. There are different solutions for this, i.e. the W3…
Determining the an SCCM package name from the Package ID
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question