[SOLVED] cannot execute binary on directory mounted by nfs (Debian wheezy) Permission denied.
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
cannot execute binary on directory mounted by nfs (Debian wheezy) Permission denied.
Hya,
System
There are 3 systems (all of them are Debian wheezy X86_64), connected by network. File sharing by nfs v3.
PenguinA: NFS client for /common/bin/
PenguinB: NFS client for /common/bin/
Whale: NFS server for /common/bin/, where many binaries are sitting.
Situation
This system used to work flawlessly.
After dist-upgrade today, PenguinA cannot execute binaries on /common/bin, error message is "Permission denied" if full path is specified.
"which" command cannot point any binaries under /common/bin/.
PenguinB has no trouble.
So far
Troubleshooting process follows;
Shell variables have correct values.
/etc/fstab has not been edited for a quite while.
Logs under /var/log do not show much.
Following look good form both PenguinA and PenguinB owner, group, permission.
"mount" on PenguinA shows "noexec". I need to find out where "noexec" comes from.
Question
What is next?
Any suggestions will be appreciated!
Last edited by kaz2100; 02-16-2012 at 12:06 AM.
Reason: missing info
What does the fstab entry look like for your NFS share (options, etc)?
From the mount man page...
Code:
The programs mount and umount maintain a list of currently mounted filesystems in the file /etc/mtab. If no arguments are given to mount, this list is printed.
Run the mount command. It's also possible that /etc/mtab is incorrectly configured. You can edit /etc/mtab just like /etc/fstab and remove a noexec option if it is specified.
Try remounting the NFS share with the exec option, what happens?
Code:
mount -o remount,exec /my/NFS/share
Alternatively you can delete the entry for the mount in /etc/mtab, unmount your filesystem, mount it again so that mtab is updated with new options.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.