Solved

cannot nfs mount with exec

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

Want to promote your upcoming event?

Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

Join & Write a Comment

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…
Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
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…
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.

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now