This is How to install and setup package Samba4 on your Turris Omnia device.
Now you should have two new entries in LuCI menu Services. HDD Idle and Network shares for your Samba v4.
LuCI - System - Mount Points
Make shure you have disk enabled (checked) in section Mount Points, remember destination. Default is /srv. Apply changes.
Let's say your device have adress 192.168.0.1 and you want to have two shared folders: private, public. Your terminal commands will be:
ssh root@192.168.0.1 cd /srv mkdir samba cd samba mkdir private public chmod -R 777 private chmod -R 777 public
By now your data will be stored in drive at destinations:
Services - Network shares
Check fileds you can leave all empty.
Other fileds will be unchecked. Apply changes.
Make sure, logging with root user is allowed. Line must be commented:
## set invalid users #invalid users = root
For you to log-in at private folder, you need in this stage setup password for samba account root.
ssh root@192.168.0.1 smbpasswd -a root
You will be prompted to enter and re-enter desired samba password.
LuCI - System - Startup
Find line “samba4” and press button Start to run apllication.
For autostart on system boot press button Disabled, it will change on green Enabled.
Open file manager, go to Others and in destination path enter:
smb://192.168.0.1
To browse folder public, just press enter to log in as Annonymous user without password.
To browse folder private, enter credentials:
Same as for Linux, but in first step your path will be:
\\192.168.0.1
Now you have your network shared folders ready to use.
Open the Network Shares page:
Create the shared directory:
Place a #
before the invalid users = root
line to disable the restriction on the root
user:
Add the root
user to the list of users that can access the Samba share:
# smbpasswd -a root New SMB password: Retype new SMB password: