LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-27-2006, 04:13 AM   #1
nogetfx
LQ Newbie
 
Registered: Dec 2004
Location: Denmark
Distribution: Debian
Posts: 22

Rep: Reputation: 15
Question NFS: Permision denied


Hi
I'm hvaing problem with a NFS- fileserver running Debian Sarge. Every 3-4 days i cant mount my shares. I just get Permision Denied.
And the log on the fileserver shows this:
Jun 27 10:39:23 main rpc.mountd: authenticated mount request from debs.utysket.dk:720 for /Apps (/Apps)
Jun 27 10:39:23 main rpc.mountd: getfh failed: Operation not permitted

I been googling and all i found that worked is "exportfs -av". Something with "/var/lib/nfs/xtab" is getting renewed. The problem is that i've got to this every 3-4 days- So can any one tell my what the cause really is.
 
Old 06-27-2006, 04:31 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Because it's re-occuring periodicly I suspect there's a link with the expiring of certain permissions. Not sure which, but you'd have to check all authentication processes on your system. (like ssh, pam, etc)
 
Old 06-30-2006, 06:11 PM   #3
nogetfx
LQ Newbie
 
Registered: Dec 2004
Location: Denmark
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 15
Sorry for late reply. I tried to look around mostly in the logs. What did you had in mind?
 
Old 06-30-2006, 06:40 PM   #4
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
None in particular, actually. But given your original post I'd suggest to take a closer look at rpc.mountd and /var/lib/nfs/xtab and the processes associated. Apparently the getfh function fails because it doesn't have enough permissions. Or it's parent process doesn't have the required permissions.
 
Old 07-01-2006, 08:35 AM   #5
jasonwilliams
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
I have the same problem sometimes when my nfs client is receiving its ip address per DHCP. When I set a static ip address the problem goes away.
 
Old 08-06-2006, 06:29 AM   #6
nogetfx
LQ Newbie
 
Registered: Dec 2004
Location: Denmark
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 15
Update:
I fixed the problem by rewrite my hosts.allow and exports. To be honest i can't remember what the looked like a month ago. But i checked that the entire submask with every ip-address was written. Clients and fileserver is in different subnets.
It's still strange that it worked for 3-4 days and then i had to reexport my exports. But i guess that's the wonders of computers.. ;-)

portmap: 172.16.0.0/255.255.255.224 172.16.0.32/255.255.255.248 127.0.0.1
........

/Apps 172.16.0.0/255.255.255.224(rw,sync,no_root_squash) 127.0.0.1(rw,sync,no_root_squash) 172.16.0.32/255.255.255.248(rw,sync,no_root_squash)
 
  


Reply

Tags
nfs



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
No writing permision in nfs Infernal211283 Linux - Networking 7 06-25-2006 11:11 PM
Samba: Permision Denied! Shioni Linux - Networking 1 03-20-2006 12:35 PM
./ permision denied????? DanTaylor Linux - Newbie 3 02-09-2006 11:00 PM
Permision Denied message when trying to run a Perl Script kurtb1234 Linux - Newbie 4 12-10-2004 12:53 PM
NFS - group permision problems on client side top001 Linux - Networking 1 02-12-2004 02:08 PM

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

All times are GMT -5. The time now is 10:25 PM.

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