How to Setup NFS (Network File System) on RHEL/CentOS/Fedora and Debian/Ubuntu

If you have any questions or problems regarding this article and want help within 24 Hours? Ask Now

Support TecMint: Did you find this tutorial helpful?. Please help to keep it alive by donating. Every cent counts! - Donate Now

Tarunika Shrivastava

I am a linux server admin and love to play with Linux and all other distributions of it. I am working as System Engineer with a Web Hosting Company.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

59 Responses

  1. sap says:

    Hi Tarunika,
    Thanks for the step by step writeup.
    I have a issue after mounting shared nfs directory on the client.
    The owner and group of /mnt/nfsshare changes to 1002
    drwxrwxr-x 103 1002 1002 4.0K Jan 19 12:08 nfsshare

    Tried changing it as root but operation is not permitted. What thing am I missing?

    • Ravi Saive says:

      @Shantanu,

      Are you trying to change the permission of a mounted nfs share on client machine using root user? if yes, that’s not possible, because the device is just mounted on the client machine with given rights in export file, so only the creator of share directory will have access to modify the permission..

    • Tikken says:

      Sap,
      The uid & gid seen on the client would normally be the same as seen from the server. The difference might be that the user accounts on each of the hosts doesn’t match one anothers’ uid/gid.
      For nfs, it’s important for the user accounts sharing their data via nfs to be identically configured.

  2. Taylor Marks says:

    These yum commands have worked for me for several months. Sometime between when I last ran them in December and when I ran them yesterday, they suddenly broke. Now when I use:

    yum -y install nfs-utils-lib

    I get an error message saying: No package nfs-utils-lib is available.

    Any idea why this is happening or how to fix it?

    • Ravi Saive says:

      @Taylor,

      I’ve just tried to install nfs-utils-lib package using yum command on my CentOS 6 and 7 servers and the package is available to install. May I know on which CentOS based distribution you’re trying to install? could you post the whole output of yum command?

  3. David says:

    Great Tutorial!
    But my question is, how can i give a specific user access to a specific NFS folder?

  4. hanumaiah says:

    we are looking for quantum tape drive mount in RHEL6.5 anyone help us

    • Ravi Saive says:

      @Hanmaiah,
      Sorry no idea about quantum tape drive, mount I think you can use mount command to mount the tape drive with the help of its device name, which you can get by fdisk or lsblk command.

Leave a Reply

Your email address will not be published. Required fields are marked *

Join Over 95000+ Linux Users
  1. 66,682
  2. 3,836
  3. 31,647

Enter your email to get latest Linux Howto's