Results 1 to 2 of 2

Thread: mount.nfs: access denied by server while mounting

  1. #1
    Join Date
    Dec 2011
    Location
    Toronto, Canada
    Beans
    60
    Distro
    Xubuntu

    mount.nfs: access denied by server while mounting

    Hello,

    Forgive me if I have targeted the wrong OS here, but I beleive 50% of the problem is with Ubuntu at least.

    Situation: I have a Ubuntu client which fails to mount an NFS share on a CentOS 6.2 server. Because the error relates to access of some sort, I added other-writable to the mode and it looks like "drwxr-xrwx". The error message did not change, but I left the extra permission there just in case... Although my username is the same on both systems, my uid on the server is 500, so I am essentially a different user.

    Failed command:
    adam@Oneiric:~$ sudo mount -t nfs 192.168.0.12:/home/adam/Public /mnt
    mount.nfs: access denied by server while mounting 192.168.0.12:/home/adam/Public


    Failed command with -v:
    adam@Oneiric:~$ sudo mount -t nfs -v 192.168.0.12:/home/adam/Public /mnt
    mount.nfs: timeout set for Wed Sep 12 13:12:26 2012
    mount.nfs: trying text-based options 'vers=4,addr=192.168.0.12,clientaddr=192.168.0.11'
    mount.nfs: mount(2): Permission denied
    mount.nfs: access denied by server while mounting 192.168.0.12:/home/adam/Public

    After much Googling (actually, Yahooing) I saw a post about changing versions so, I used this:
    adam@Oneiric:~$ sudo mount -t nfs -o vers=3 192.168.0.12:/home/adam/Public /mnt
    (Success...)
    adam@
    Oneiric:~$ mount
    ...
    192.168.0.12:/home/adam/Public on /mnt type nfs (rw,vers=3,addr=192.168.0.12)

    So, I can at least assume that I correctly configured the server, and the problem occurs with the default version 4, but does not occur when the client uses version 3.

    If this is a buggy version of NFS, then why isn't ver 3 still the default? How can I set the client to always use version 3?

    I will need to run this between two Ubuntu systems just in case there is a problem with the CentOS configuration, but I suspect that I will have the same problem, since no errors occured with the version 3 mount.

  2. #2
    Join Date
    Sep 2010
    Location
    Indian Capital City
    Beans
    916
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: mount.nfs: access denied by server while mounting

    Might be something wrong on your server side NFS export definition.

    Does anything appear in your server's syslog ?

    How has the export been defined ? Can you post the definition here ?
    When you have eliminated the impossible, whatever remains, however improbable, must be the truth !!
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Mark it [SOLVED] if the issue has been resolved

Tags for this Thread

Bookmarks

Posting Permissions

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