Solved

cannot nfs mount with exec

Posted on 2008-10-31
3
817 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
  • 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

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…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

830 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