Differences
This shows you the differences between two versions of the page.
linux_wiki:provide_network_shares_suitable_for_group_collaboration [2016/08/31 23:19] billdozor created |
linux_wiki:provide_network_shares_suitable_for_group_collaboration [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Provide Network Shares Suitable For Group Collaboration ====== | ||
- | |||
- | **General Information** | ||
- | |||
- | Configuring group sharing/ | ||
- | |||
- | ---- | ||
- | |||
- | ====== Group Collaboration: | ||
- | |||
- | Create a group | ||
- | <code bash> | ||
- | groupadd -g 7777 nfsgroup | ||
- | </ | ||
- | |||
- | \\ | ||
- | Add users | ||
- | <code bash> | ||
- | adduser user1 | ||
- | adduser user2 | ||
- | </ | ||
- | |||
- | \\ | ||
- | Add users to the group | ||
- | <code bash> | ||
- | usermod -G nfsgroup user1 | ||
- | usermod -G nfsgroup user2 | ||
- | </ | ||
- | |||
- | \\ | ||
- | Create directory for exporting and change ownership | ||
- | <code bash> | ||
- | mkdir /nfsdata | ||
- | chown nfsnobody: | ||
- | </ | ||
- | |||
- | \\ | ||
- | Change permissions on the directory | ||
- | <code bash> | ||
- | chmod 2770 /nfsdata | ||
- | </ | ||
- | |||
- | \\ | ||
- | <code bash> | ||
- | vim / | ||
- | |||
- | / | ||
- | </ | ||
- | |||
- | \\ | ||
- | Export directory and verify in etab | ||
- | <code bash> | ||
- | exportfs -var | ||
- | |||
- | cat / | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ====== Group Collaboration: | ||
- | |||
- | Setup the same group and users | ||
- | <code bash> | ||
- | groupadd -g 7777 nfsgroup | ||
- | useradd user1 | ||
- | useradd user2 | ||
- | |||
- | usermod -G nfsgroup user1 | ||
- | usermod -G nfsgroup user2 | ||
- | </ | ||
- | |||
- | \\ | ||
- | Create directory for mounting | ||
- | <code bash> | ||
- | mkdir /nfsdata | ||
- | </ | ||
- | |||
- | \\ | ||
- | Persistent mount point in fstab | ||
- | <code bash> | ||
- | vim /etc/fstab | ||
- | |||
- | 192.168.1.200:/ | ||
- | </ | ||
- | |||
- | \\ | ||
- | Mount the directory and verify | ||
- | <code bash> | ||
- | mount -a | ||
- | |||
- | df -hT | ||
- | </ | ||
- | |||
- | ---- | ||