nas:build_a_linux_nas:create_a_samba_share
Differences
This shows you the differences between two versions of the page.
nas:build_a_linux_nas:create_a_samba_share [2021/09/25 16:16] – created peter | nas:build_a_linux_nas:create_a_samba_share [2021/09/25 16:17] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== NAS - Build a Linux NAS - Create a Samba Share ====== | ====== NAS - Build a Linux NAS - Create a Samba Share ====== | ||
+ | |||
+ | ===== Create Samba Share ===== | ||
+ | |||
+ | Save a backup of the default Samba Config. | ||
+ | |||
+ | <code bash> | ||
+ | sudo cp / | ||
+ | </ | ||
+ | |||
+ | Now edit the Samba Config file, **/ | ||
+ | |||
+ | <file bash / | ||
+ | [global] | ||
+ | workgroup=WORKGROUP | ||
+ | server min protocol = SMB2 | ||
+ | server max protocol = SMB3 | ||
+ | server string = NAS | ||
+ | log file = / | ||
+ | |||
+ | [data] | ||
+ | path = / | ||
+ | available = yes | ||
+ | valid users = peter | ||
+ | read only = no | ||
+ | browseable = yes | ||
+ | writable = yes | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Create a Samba user ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo smbpasswd -a peter | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | Added user peter. | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Test Access to the Share ===== | ||
+ | |||
+ | Within a Web Browser, enter | ||
+ | |||
+ | <code bash> | ||
+ | // | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * **192.168.1.5**: | ||
+ | * Obviously use whatever IP address that device has. | ||
+ | * **data**: | ||
+ | </ | ||
nas/build_a_linux_nas/create_a_samba_share.1632586579.txt.gz · Last modified: 2021/09/25 16:16 by peter