Networking Forums

Networking Forums > Computer Networking > Linux Networking > NFS and "Permission denied" error

Reply
Thread Tools Display Modes

NFS and "Permission denied" error

 
 
Fabio Alemagna
Guest
Posts: n/a

 
      05-23-2005, 03:45 PM
Hello everyone,

I'm trying to set up an NFS server, with MDK 10.1 and nfs-utils-1.0.7,
but from whichever machine I try to mount the exported directory, even
from the server itself, I always get the "Permission denied" error.

My /etc/exports file contains the following:

/tftpboot *(rw,sync,no_root_squash)

The /tftpboot directory is readable and listable by everyone.

The files /etc/hosts.allow and /etc/hosts.deny are both empty (the
network is behind a firewall, I have no need for special protections).

The "showmount -e" command shows that /tftpboot is correctly exported.

Just to be sure, I've even run "exportfs -ra" (but that's something the
script in /etc/init.d should have taken care of already), however I
noticed that instead of updating /var/lib/nfs/xtab (which is left
empty), exportfs updates /var/lib/nfs/etab. I don't know whether this
may be a problem - even if update the xtab file by hand, I get no
positive results.

I really don't know where else to look... has anyone had my same problem
or otherwise knows what's going on?

Regards,
Fabio
 
Reply With Quote
 
 
 
 
hakim
Guest
Posts: n/a

 
      05-23-2005, 08:34 PM
Hello,

I know that behavior of clients, where the portmap service is not
running on the client machine.

Please check that and let me know...

 
Reply With Quote
 
Fabio Alemagna
Guest
Posts: n/a

 
      05-23-2005, 08:57 PM
hakim wrote:
> Hello,
>
> I know that behavior of clients, where the portmap service is not
> running on the client machine.
>
> Please check that and let me know...


Portmap is running, and in /var/log/messages I get a line like this when
I try to mount the exported directory on the server itself:

May 23 13:40:55 localhost rpc.mountd: authenticated mount request from
localhost:972 for /tftpmount (/tftpmount)

Fabio
 
Reply With Quote
 
hakim
Guest
Posts: n/a

 
      05-24-2005, 07:48 AM
Hi,

The next thing is if you are trying to mount it from the local server
which isn't normally a problem. Then you should check again your
settings in /etc/exports.

create a /etc/exports which looks like that:

/tftpboot 10.0.0.0/255.255.255.0(rw,sync,no_root_squash)

After that restart the nfsserver...

Most probably it will work now...

Let me know please. It's always nice to get a feedback. Thanks in
advance...

 
Reply With Quote
 
Fabio Alemagna
Guest
Posts: n/a

 
      05-24-2005, 09:05 AM
hakim wrote:
> Hi,
>
> The next thing is if you are trying to mount it from the local server
> which isn't normally a problem.


Yes, as said I've tried mounting it from the local server too, and I get
always the same error.

> Then you should check again your settings in /etc/exports.
>
> create a /etc/exports which looks like that:
>
> /tftpboot 10.0.0.0/255.255.255.0(rw,sync,no_root_squash)
>
> After that restart the nfsserver...


Mmm, well, I'm not sure why you suggest I should change that - specially
because I've not told you my subnet address and network mask - but
anyway, even if I change it that way I get the same problem.

> Most probably it will work now...


Nope, sorry, it didn't :-/

> Let me know please. It's always nice to get a feedback. Thanks in
> advance...


Ehm, how strante, you thanking me for something I asked you

Fabio
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Permission denied" from pand when trying to connect Bluetooth Robert Dodier Linux Networking 0 01-26-2007 05:38 PM
Continuation of "Arrrgh! rsync "chroot failed" error message!" kenney@lucent.com Linux Networking 3 08-10-2006 08:35 AM
Re: SPEWS SLIMES "WindsorFox", "Kevin-!:?)", "Spin Dryer" get the cold shoulder at broadband ng! SneakyP Broadband 0 11-29-2005 10:46 PM
Attention Plus.net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM broadband newsgroup !:?) Broadband 0 11-28-2005 04:28 AM
Attention Plus.Net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM braodband newsgroup !:?) Broadband 0 11-28-2005 03:03 AM



1 2 3 4 5 6 7 8 9 10 11