Differences
This shows you the differences between two versions of the page.
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 [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 20: | Line 20: | ||
- | ===== Global | + | ===== Samba Config ===== |
- | Settings to configure globally. | + | Settings to configure globally |
/ | / | ||
Line 49: | Line 49: | ||
#-- smb encrypt: Requires Win8/ | #-- smb encrypt: Requires Win8/ | ||
#smb encrypt = mandatory | #smb encrypt = mandatory | ||
- | </ | ||
- | ---- | ||
- | |||
- | ===== Share Config ===== | ||
- | |||
- | Share config settings. | ||
- | |||
- | / | ||
[share_name] | [share_name] | ||
path = / | path = / | ||
Line 67: | Line 59: | ||
hosts allow = 192.168.1. 127.0.0.1 | hosts allow = 192.168.1. 127.0.0.1 | ||
</ | </ | ||
+ | |||
+ | \\ | ||
+ | **Config File Help** | ||
+ | <code bash> | ||
+ | vim / | ||
+ | And | ||
+ | man smb.conf | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | [Optional] Test samba config syntax | ||
+ | <code bash> | ||
+ | testparm | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | Restart the samba service | ||
+ | <code bash> | ||
+ | systemctl restart smb | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | Test the samba share | ||
+ | <code bash> | ||
+ | smbclient -L //localhost -U sambauser1 | ||
+ | </ | ||
+ | * Enter samba password (not system) when prompted | ||
---- | ---- |