Solved

cannot nfs mount with exec

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Have you ever stumbled upon a software that is so great that you just love? It happened to me. Love at first sight. Filezilla Server.   Ok its not the most advanced ftp server I've came across. But its a fairly simple piece of software to get the …
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…
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…

785 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