CentOS 9.x Configure basic NFSv4 server for sharing folders between two machines

From Notes_Wiki
Revision as of 11:21, 21 May 2022 by Saurabh (talk | contribs) (Created page with "Home > CentOS > CentOS 9.x > CentOS 9.x file sharing > CentOS 9.x NFS > CentOS 9.x Configure basic NFSv4 server for sharing folders between two machines There is older article on this at CentOS 7.x Configure basic NFSv4 server for sharing folders between two machines To configure CentOS 9.x based NFS server use: # Disable SELinux by editing '<tt>/etc/sysconfig/selinux</tt>' and setting: #:<pre> #:: SELINUX=disabled #:</pre> #: Al...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > CentOS > CentOS 9.x > CentOS 9.x file sharing > CentOS 9.x NFS > CentOS 9.x Configure basic NFSv4 server for sharing folders between two machines

There is older article on this at CentOS 7.x Configure basic NFSv4 server for sharing folders between two machines

To configure CentOS 9.x based NFS server use:

  1. Disable SELinux by editing '/etc/sysconfig/selinux' and setting:
    SELINUX=disabled
    Also run
    setenforce 0
    grubby --update-kernel ALL --args selinux=0
  2. Install nfs-utils package
    dnf -y install nfs-utils
  3. Edit /etc/exports to export desired folder such as /home in below example:
    /home *(rw,no_root_squash,crossmnt)
  4. Start and enable server
    systemctl start nfs-server
    systemctl enable nfs-server
  5. Validate nfs exports from current server using:
    showmount -e
    exportfs -a -v



Home > CentOS > CentOS 9.x > CentOS 9.x file sharing > CentOS 9.x NFS > CentOS 9.x Configure basic NFSv4 server for sharing folders between two machines