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:55]
billdozor [Share Config]
linux_wiki:cifs_windows_shares [2019/05/25 23:50] (current)
Line 17: Line 17:
 systemctl start smb</code> systemctl start smb</code>
  
 +  * Create a samba user and password<code bash>smbpasswd -a sambauser1</code>
  
-===== Global Config ===== 
  
-Settings to configure globally.+===== Samba Config ===== 
 + 
 +Settings to configure globally and at the share level
  
 /etc/samba/smb.conf<code bash> /etc/samba/smb.conf<code bash>
Line 47: 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 65: 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.1531446928.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)