NFS: Permission denied

Not sure since what kernel, but you need to mount nfsd virtual file system on server. Otherwise you will get:

mount: failed, reason given by server: Permission denied

To resolve it type:

on server root console

mount -t nfsd none /proc/fs/nfsd

You can safely make that permanent (automount on boot):

edit /etc/fstab and add following line

none                    /proc/fs/nfsd   nfsd     defaults 0 0

It took me a few hours to resolve this issue… There are so many questions about above Permission denied message over the Internet, but I didn’t find single answer with this hint…

More troubleshooting

  • Make sure you have NFS compiled in kernel.
  • Check the firewall settings and SELinux settings. Eventually disable both for test.
  • On Fedora Core 5 I found out the I’m getting:
    _sqlite.OperationalError: database is locked

    Until I start NFS locking service on both server & client:

    service nfslock start

More resources: sharing between SELinux Fedora Core and non-SELinux system

Post Scriptum: this is an import of information that I wrote a while ago. Things might have changed since then.

This entry was posted in Linux and tagged , . Bookmark the permalink.

One Response to NFS: Permission denied

  1. Leonardo says:

    NFS: Permission denied,

    More hours to resolve this issue that was a bug detected, but, thank you very macth by help!

    See you bugzilla:

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>