User Tools

Site Tools


nas:build_a_linux_nas:create_a_samba_share

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

nas:build_a_linux_nas:create_a_samba_share [2021/09/25 16:16] – created peternas: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 /etc/samba/smb.conf /etc/samba/smb.conf.orig
 +</code>
 +
 +Now edit the Samba Config file, **/etc/samba/smb.conf**, and populate as:
 +
 +<file bash /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
 +</file>
 +
 +----
 +
 +===== Create a Samba user =====
 +
 +<code bash>
 +sudo smbpasswd -a peter
 +</code>
 +
 +returns:
 +
 +<code bash>
 +Added user peter.
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  Make sure that the user has permissions to the files on system level as well.
 +</WRAP>
 +
 +----
 +
 +===== Test Access to the Share =====
 +
 +Within a Web Browser, enter
 +
 +<code bash>
 +//192.168.1.5/data
 +</code>
 +
 +<WRAP info>
 +**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.
 +</WRAP>
  
nas/build_a_linux_nas/create_a_samba_share.1632586579.txt.gz · Last modified: 2021/09/25 16:16 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki