nas:build_a_linux_nas:create_a_samba_share
Table of Contents
NAS - Build a Linux NAS - Create a Samba Share
Create Samba Share
Save a backup of the default Samba Config.
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.orig
Now edit the Samba Config file, /etc/samba/smb.conf, and populate as:
- /etc/samba/smb.conf
[global] workgroup=WORKGROUP server min protocol = SMB2 server max protocol = SMB3 server string = NAS log file = /var/log/samba/%m.log [data] path = /mnt/nas/data available = yes valid users = peter read only = no browseable = yes writable = yes
Create a Samba user
sudo smbpasswd -a peter
returns:
Added user peter.
NOTE: Make sure that the user has permissions to the files on system level as well.
Test Access to the Share
Within a Web Browser, enter
//192.168.1.5/data
NOTE:
- 192.168.1.5: The IP Address of the NAS.
- Obviously use whatever IP address that device has.
- data: The name of the Samba Share, as defined in the Samba Config file.
nas/build_a_linux_nas/create_a_samba_share.txt · Last modified: 2021/09/25 16:17 by peter