Results 1 to 9 of 9
Hello,
I've been configuring an NFS server on my local network. I'm pretty sure I set up the server and configured the export, hosts.allow and hosts.deny correctely (I followed the ...
- 07-16-2006 #1Just Joined!
- Join Date
- May 2006
- Posts
- 20
NFS - Permission denied by server
Hello,
I've been configuring an NFS server on my local network. I'm pretty sure I set up the server and configured the export, hosts.allow and hosts.deny correctely (I followed the NFS HowTO)*. Nevertheless, as I want to mount a filesystem from the client (ubuntu), the server (debian) denies permission. I've checked that the user name has the same IUD number on the server and client side.
A quick google up led me to the following sentence:
Being a newbye, this unfortunately didn't help me that much. Questions are the following:I have encountered a problem using autofs to mount remote nfs shares. The problem was that the server's log reports successful authentication whereas the client told "permission denied by server". The workaround is to put "/etc/init.d/portmap restart" into "/etc/conf.d/local.start". That problem seems to be related to how portmap and nfs interact...
1. How do I access the server's log reports
2. What does s/he mean by "put "/etc/init.d/portmap restart" into "/etc/conf.d/local.start""?
3. Do you think this problem could be linked to the fact that Ubuntu doesn't provide a "root" and that I have to sudo mount?
Thanks in advance,
jr
- 07-16-2006 #2Linux User
- Join Date
- Jan 2006
- Posts
- 251
access the log reports at
/var/log/messages
Can you manually mount the nfs exports at the client?(try mounting on the server too,on itself)
Do you have any firewall that might obstruct your exports?
- 07-17-2006 #3Just Joined!
- Join Date
- May 2006
- Posts
- 20
Hi,
Thanks for you reply.
According to the log:
Trying to mount the file on the server, I get the following message:Jul 17 19:22:29 latitude rpc.mountd: refused mount request from razor for /home/jyer/mp3 (/): no export entryThis though I specified in my hosts.allow file that 127.0.0.1 should be granted access. And the exports file contains:I assume "mount 192.168.1.35:/home/jyer/mp3 /mnt/mp3" is the right way to do so?)Any clue?/home/jyer/mp3 127.0.0.1(secure,ro,no_root_squash)
- 07-17-2006 #4Linux User
- Join Date
- Jan 2006
- Posts
- 251
seems that portmap isn't running,do a
rpcinfo -p
at server
the output would be something like: (from the web)
all these should be registered with portmap and runningCode:100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100021 1 udp 32774 nlockmgr 100021 3 udp 32774 nlockmgr 100021 4 udp 32774 nlockmgr 100021 1 tcp 34121 nlockmgr 100021 3 tcp 34121 nlockmgr 100021 4 tcp 34121 nlockmgr 100024 1 udp 32852 status 100024 1 tcp 59544 status 100011 1 udp 933 rquotad 100011 2 udp 933 rquotad 100011 1 tcp 936 rquotad 100011 2 tcp 936 rquotad 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100005 1 udp 960 mountd 100005 1 tcp 963 mountd 100005 2 udp 960 mountd 100005 2 tcp 963 mountd 100005 3 udp 960 mountd 100005 3 tcp 963 mountd
- 07-17-2006 #5Just Joined!
- Join Date
- May 2006
- Posts
- 20
Here's my preview, seems pretty similar to yours, no?
Does the following sentence mean anything to you?Code:program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100021 1 udp 1024 nlockmgr 100021 3 udp 1024 nlockmgr 100021 4 udp 1024 nlockmgr 100021 1 tcp 1024 nlockmgr 100021 3 tcp 1024 nlockmgr 100021 4 tcp 1024 nlockmgr 100005 1 udp 790 mountd 100005 1 tcp 793 mountd 100005 2 udp 790 mountd 100005 2 tcp 793 mountd 100005 3 udp 790 mountd 100005 3 tcp 793 mountd 100024 1 udp 839 status 100024 1 tcp 842 status
The workaround is to put "/etc/init.d/portmap restart" into "/etc/conf.d/local.start".
- 07-17-2006 #6Linux User
- Join Date
- Jan 2006
- Posts
- 251
do you have any file /etc/conf.d/local.start(this is the file in gentoo?..)
Originally Posted by jyer
that might be file that starts all the scripts in it at boot
so putting /etc/init.d/portmap starts portmap everytime at boot..
http://gentoo-wiki.com/TIP_List_of_Configuration_Files
edit:I notice you have a debian
so if you want to do the same, put it in
/etc/init.d/rc.local
- 07-17-2006 #7Just Joined!
- Join Date
- May 2006
- Posts
- 20
Ok. I didn't realize it was Gentoo specific. That's a least a good reason for not understanding it

I still neither understand what I'm suppose to "put" or what you mean by "put" in the first place. I don't have any rc.local, so don't even know if it's a file or a directory!put it in /etc/init.d/rc.local
Even so, do you have any clue about why my NFS doesn't work?
- 07-17-2006 #8Linux User
- Join Date
- Jan 2006
- Posts
- 251
let us troubleshoot,
1)do you have the line
in /etc/host.deny (but without allowing your clients in /etc/host.allow like)Code:portmap: ALL
ofcourse the ports are open to the clients(as seen from rpcinfo -p)Code:portmap: 192.168.0.1 , 192.168.0.2
2)do a
ps aux | grep portmap
and make sure portmap is running(indeed rpcinfo -p shows that portmapper is running in your case)
2)I have an exports entry like this
and a very good tutorial:http://www.faqs.org/docs/Linux-HOWTO/NFS-HOWTO.htmlCode:/u/home xxxxx(rw,sync,no_root_squash) which works fine
to troubleshoot
and you need not do that right now because your portmap is up and runningI still neither understand what I'm suppose to "put" or what you mean by "put" in the first place. I don't have any rc.local, so don't even know if it's a file or a directory
the log says that you do not have an export entry,Jul 17 19:22:29 latitude rpc.mountd: refused mount request from razor for /home/jyer/mp3 (/): no export entry
Is your /etc/exports file error free?
and finally,be sure to restart nfs after you have made any changes
/etc/init.d/nfs restart
{or /etc/init.d/nfs-common restart
and /etc/init.d/nfs-kernel-server restart}
- 08-13-2006 #9Just Joined!
- Join Date
- May 2006
- Posts
- 20
Hi,
Thanks for your answer. I reread the tutorial. It turns out I didn't install the nfs-utils package on the server. Hence I don't have the Daemons running on my server.
The problem is that I can't install the nfs-utils package. According to apt-get, the packages simply doesn't exist ("couldn't find package nfs-utils").
I tried on another computer running ubuntu and couldn't find the package either. A research on http://packages.debian.org informed me that the package didn't seem to exist.
Does anyone know where I can find it? If you try an apt-get install, do you get it? If so, what is your sources.list?
+
According to the Tutorial, I should "include the doemons in the startup scripts". How do I do that (providing I manage to install them
Thanks,
jr
jr


Reply With Quote
