linux_wiki:smb_provide_network_shares_suitable_for_group_collaboration

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:smb_provide_network_shares_suitable_for_group_collaboration [2016/10/02 22:16]
billdozor [Group Shares: Server]
linux_wiki:smb_provide_network_shares_suitable_for_group_collaboration [2019/05/25 23:50] (current)
Line 6: Line 6:
  
 **Prerequisites** **Prerequisites**
-  * [[linux_wiki:smb_provide_network_shares_to_specific_clients|Samba server installed and configured]] +  * [[linux_wiki:smb_provide_network_shares_to_specific_clients#server_install_and_config|Samba server installed and configured]] 
-  * [[linux_wiki:smb_provide_network_shares_to_specific_clients|Samba client installed and configured]]+  * [[linux_wiki:smb_provide_network_shares_to_specific_clients#client_install_and_config|Samba client installed and configured]] 
 + 
 +---- 
 + 
 +====== Lab Setup ====== 
 + 
 +The following virtual machines will be used: 
 +  * server1.example.com (192.168.1.150) -> Perform all SMB client tests from here 
 +  * server2.example.com (192.168.1.151) -> Install the Samba Server here
  
 ---- ----
Line 53: Line 61:
  
 [sambashare_group] [sambashare_group]
- comment = /sambashare_group + comment = My Groups Samba Share
- browsable = yes+
  path = /sambashare_group  path = /sambashare_group
- public = no 
  valid users = @smbgrp  valid users = @smbgrp
  write list = @smbgrp  write list = @smbgrp
  writable = yes  writable = yes
  force group = +smbgrp  force group = +smbgrp
- create mask = 0770+ create mask = 0664 
 + directory mask = 0775 
 + 
 + # Defaults, but listing in case something in [global] over rides 
 + browsable = yes 
 + public = no
 </code> </code>
 +  * +smbgrp  -> The "+" means that only users already in the group (smbgrp) will use that as their primary group when accessing the share.
  
 \\ \\
Line 74: Line 86:
 ====== Group Shares: Client ====== ====== Group Shares: Client ======
  
-  * Ensure the same users and group exist on the client +Ensure the same users and group exist on the client 
-    * uids and gids must match!+  * **uids and gids must match!**
  
 \\ \\
Line 90: Line 102:
  
 \\ \\
-Mount temporarily+Mount Persistently
 <code bash> <code bash>
-mount //192.168.1.200/smbgroupshare /collaborate -t cifs -o username=user1+vim /root/.sharedcreds 
 +  
 +username=user1 
 +password=password 
 + 
 + 
 +vim /etc/fstab 
 +  
 +//192.168.1.200/smbgroupshare /collaborate  cifs _netdev,rw,credentials=/root/.sharedcreds,uid=1004,gid=1004  0 0
 </code> </code>
  
 ---- ----
  
  • linux_wiki/smb_provide_network_shares_suitable_for_group_collaboration.1475460990.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)