linux_wiki:cifs_windows_shares

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:cifs_windows_shares [2018/07/12 21:57]
billdozor [Samba (CIFS) Server Setup]
linux_wiki:cifs_windows_shares [2018/07/12 22:01]
billdozor [Samba Config]
Line 20: Line 20:
  
  
-===== Global Config =====+===== Samba Config =====
  
-Settings to configure globally.+Settings to configure globally and at the share level
  
 /etc/samba/smb.conf<code bash> /etc/samba/smb.conf<code bash>
Line 49: Line 49:
 #-- smb encrypt: Requires Win8/10/Server2012 or newer clients due to smbv3 --# #-- smb encrypt: Requires Win8/10/Server2012 or newer clients due to smbv3 --#
 #smb encrypt = mandatory #smb encrypt = mandatory
-</code> 
  
----- 
- 
-===== Share Config ===== 
- 
-Share config settings. 
- 
-/etc/samba/smb.conf<code bash> 
 [share_name] [share_name]
 path = /path_to_share path = /path_to_share
Line 67: Line 59:
 hosts allow = 192.168.1. 127.0.0.1 hosts allow = 192.168.1. 127.0.0.1
 </code> </code>
 +
 +\\
 +**Config File Help**
 +<code bash>
 +vim /etc/samba/smb.conf.example
 +And
 +man smb.conf
 +</code>
 +
 +\\
 +[Optional] Test samba config syntax
 +<code bash>
 +testparm
 +</code>
 +
 +\\
 +Restart the samba service
 +<code bash>
 +systemctl restart smb
 +</code>
 +
 +\\
 +Test the samba share
 +<code bash>
 +smbclient -L //localhost -U sambauser1
 +</code>
 +  * Enter samba password (not system) when prompted
  
 ---- ----
  • linux_wiki/cifs_windows_shares.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)