Find the answer to your Linux question:
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 ...
  1. #1
    Just 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:
    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...
    Being a newbye, this unfortunately didn't help me that much. Questions are the following:
    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

  2. #2
    Linux 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?

  3. #3
    Just Joined!
    Join Date
    May 2006
    Posts
    20
    Hi,
    Thanks for you reply.
    According to the log:
    Jul 17 19:22:29 latitude rpc.mountd: refused mount request from razor for /home/jyer/mp3 (/): no export entry
    Trying to mount the file on the server, I get the following message:
    I assume "mount 192.168.1.35:/home/jyer/mp3 /mnt/mp3" is the right way to do so?)
    This though I specified in my hosts.allow file that 127.0.0.1 should be granted access. And the exports file contains:
    /home/jyer/mp3 127.0.0.1(secure,ro,no_root_squash)
    Any clue?

  4. #4
    Linux 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)

    Code:
    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
    all these should be registered with portmap and running

  5. #5
    Just Joined!
    Join Date
    May 2006
    Posts
    20
    Here's my preview, seems pretty similar to yours, no?


    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
    Does the following sentence mean anything to you?
    The workaround is to put "/etc/init.d/portmap restart" into "/etc/conf.d/local.start".

  6. #6
    Linux User
    Join Date
    Jan 2006
    Posts
    251
    Quote Originally Posted by jyer
    The workaround is to put "/etc/init.d/portmap restart" into "/etc/conf.d/local.start".
    Does the following sentence mean anything to you?
    do you have any file /etc/conf.d/local.start(this is the file in gentoo?..)
    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

  7. #7
    Just 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
    put it in /etc/init.d/rc.local
    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!
    Even so, do you have any clue about why my NFS doesn't work?

  8. #8
    Linux User
    Join Date
    Jan 2006
    Posts
    251
    let us troubleshoot,

    1)do you have the line
    Code:
    portmap: ALL
    in /etc/host.deny (but without allowing your clients in /etc/host.allow like)
    Code:
     portmap: 192.168.0.1 , 192.168.0.2
    ofcourse the ports are open to the clients(as seen from rpcinfo -p)

    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
    Code:
    /u/home  xxxxx(rw,sync,no_root_squash) which works fine
    and a very good tutorial:http://www.faqs.org/docs/Linux-HOWTO/NFS-HOWTO.html
    to troubleshoot

    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
    and you need not do that right now because your portmap is up and running

    Jul 17 19:22:29 latitude rpc.mountd: refused mount request from razor for /home/jyer/mp3 (/): no export entry
    the log says that you do not have an 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}

  9. #9
    Just 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •