LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-15-2012, 11:59 PM   #1
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Rep: Reputation: 108Reputation: 108
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
 
Old 02-16-2012, 06:21 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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.

Last edited by sag47; 02-16-2012 at 06:25 PM.
 
Old 02-16-2012, 07:23 PM   #3
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Original Poster
Rep: Reputation: 108Reputation: 108
Hya,

Thanks, sag47

Yes, /etc/fstab has options "rw,user,noauto,vers=3", which has been sitting for a while.

"mount" command gives "noexec" again.
"mount -o remount,exec" fails, exit code is 32.

/common/ is "fsck"ed, so hopefully filesystem is not corrupted.

cheers
 
Old 02-16-2012, 07:26 PM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Did you check /etc/mtab? Did you try deleting the mtab entry, unmounting and then mounting the share again (3 steps)?
 
Old 02-16-2012, 08:12 PM   #5
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Original Poster
Rep: Reputation: 108Reputation: 108
Hya,

Yes, I checked /etc/mtab, which had noexec.

No, I have not tried your three steps.

I tried to umount, checked mtab to make sure no /common/, and mount, without success.
I put exec option on fstab, no success.

Then I tried your three steps, BINGO!


Thanks a lot.
 
  


Reply

Tags
binary, debian, nfs, permission



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to add format permission for user in Debian Wheezy? infoslaw Linux - Security 4 02-16-2012 04:03 PM
cd to nfs mounted dir outputs permission denied ElectroLinux Linux - Newbie 2 05-21-2008 07:29 PM
Can't execute NFS mounted script hexbox Linux - Networking 2 02-03-2005 05:59 PM
Can't access mounted NFS directory: "permission denied" SparceMatrix Linux - General 6 03-08-2003 01:36 PM
permission denied when mounting nfs directory keirobyn Linux - Networking 3 01-29-2002 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration