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)
client
mount -t nfs 10.1.1.60:/media/<dir> /mnt
if passwored
mount -t nfs 10.1.1.60:/media/<dir> /mnt -o username=<user>,password=<pass>
No comments:
Post a Comment