linux_wiki:provide_network_shares_suitable_for_group_collaboration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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/collaboration using NFS.  
- 
----- 
- 
-====== Group Collaboration: NFS Server ====== 
- 
-Create a group 
-<code bash> 
-groupadd -g 7777 nfsgroup 
-</code> 
- 
-\\ 
-Add users 
-<code bash> 
-adduser user1 
-adduser user2 
-</code> 
- 
-\\ 
-Add users to the group 
-<code bash> 
-usermod -G nfsgroup user1 
-usermod -G nfsgroup user2 
-</code> 
- 
-\\ 
-Create directory for exporting and change ownership 
-<code bash> 
-mkdir /nfsdata 
-chown nfsnobody:nfsgroup /nfsdata 
-</code> 
- 
-\\ 
-Change permissions on the directory 
-<code bash> 
-chmod 2770 /nfsdata 
-</code> 
- 
-\\ 
-<code bash> 
-vim /etc/exports 
- 
-/nfsdata  192.168.1.10(rw,no_root_squash) 
-</code> 
- 
-\\ 
-Export directory and verify in etab 
-<code bash> 
-exportfs -var 
- 
-cat /var/lib/nfs/etab 
-</code> 
- 
----- 
- 
-====== Group Collaboration: NFS Client ====== 
- 
-Setup the same group and users 
-<code bash> 
-groupadd -g 7777 nfsgroup 
-useradd user1 
-useradd user2 
- 
-usermod -G nfsgroup user1 
-usermod -G nfsgroup user2 
-</code> 
- 
-\\ 
-Create directory for mounting 
-<code bash> 
-mkdir /nfsdata 
-</code> 
- 
-\\ 
-Persistent mount point in fstab 
-<code bash> 
-vim /etc/fstab 
- 
-192.168.1.200:/nfsdata  /nfsdata  nfs  rw,_netdev  0 0 
-</code> 
- 
-\\ 
-Mount the directory and verify 
-<code bash> 
-mount -a 
- 
-df -hT 
-</code> 
- 
----- 
  
  • linux_wiki/provide_network_shares_suitable_for_group_collaboration.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)