Results 1 to 2 of 2

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

  1. #1
    Join Date
    Dec 2011

    mount.nfs: access denied by server while mounting


    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 /mnt
    mount.nfs: access denied by server while mounting

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

    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 /mnt
    Oneiric:~$ mount
    ... on /mnt type nfs (rw,vers=3,addr=

    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
    Indian Capital City
    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


Posting Permissions

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