====== Provide Network Shares Suitable For Group Collaboration ======
**General Information**
Configuring group sharing/collaboration using NFS.
----
====== Lab Setup ======
The following virtual machines will be used:
* server1.example.com (192.168.1.150) -> Perform all NFS client tests from here
* server2.example.com (192.168.1.151) -> Install the NFS server here
----
====== Group Collaboration: NFS Server ======
Create a group
groupadd -g 7777 nfsgroup
\\
Add users
adduser user1
adduser user2
\\
Add users to the group
usermod -G nfsgroup user1
usermod -G nfsgroup user2
\\
Create directory for exporting and change ownership
mkdir /nfsdata
chown nfsnobody:nfsgroup /nfsdata
\\
Change permissions on the directory
chmod 2770 /nfsdata
\\
vim /etc/exports
/nfsdata 192.168.1.10(rw,no_root_squash)
\\
Export directory and verify in etab
exportfs -var
cat /var/lib/nfs/etab
----
====== Group Collaboration: NFS Client ======
Setup the same group and users
groupadd -g 7777 nfsgroup
useradd user1
useradd user2
usermod -G nfsgroup user1
usermod -G nfsgroup user2
\\
Create directory for mounting
mkdir /nfsdata
\\
Persistent mount point in fstab
vim /etc/fstab
192.168.1.200:/nfsdata /nfsdata nfs rw,_netdev 0 0
\\
Mount the directory and verify
mount -a
df -hT
----