Thursday, October 12, 2023

nfs share folder

To share nfs with all permission add these line to /etc/exports (on debian jesssie)

<folder> <ip/mask>  (rw,sync,no_subtree_check,no_all_squash,no_root_squash) 

to be accessedon multiple subnet

<folder> <ip/mask>  (rw,sync,no_subtree_check,no_all_squash,no_root_squash)  <ip2/mask> (rw,sync,no_subtree_check,no_all_squash,no_root_squash) 

 

examples:

 vi /etc/exports

....

 /media/data 10.1.1.0/255.255.255.0(rw,sync,no_subtree_check,no_all_squash,no_root_squash) 

/media/maindata 10.1.1.0/255.255.255.0(rw,sync,no_subtree_check,no_all_squash,no_root_squash) 10.1.2.0/255.255.255.0(rw,sync,no_subtree_check,no_all_squash,no_root_squash)



No comments:

Post a Comment