#!/bin/bash # ubuntu 20.04 FOLDER=/mnt/data apt update && apt install -y nfs-kernel-server chown nobody:nogroup $FOLDER echo "$FOLDER 192.168.20.0/24(rw,sync,no_subtree_check,no_root_squash)" >> /etc/exports systemctl restart nfs-kernel-server