Samba4 not creating smb.conf

I’ve just installed a Turris Omnia for the first time, and added these packages:
root@emerson:~# opkg list-installed|grep samba
luci-app-samba4 - git-21.222.69112-b41f377-1
luci-i18n-samba4-en - git-21.222.69112-b41f377-1
samba4-admin - 4.11.17-3.7-2
samba4-client - 4.11.17-3.7-2
samba4-libs - 4.11.17-3.7-2
samba4-server - 4.11.17-3.7-2
samba4-utils - 4.11.17-3.7-2

I can edit shares in LuCI, and I see the settings reflected in uci, but there is no /etc/samba/smb.conf created, and smbd does not start successfully. logread does not output anything useful. Am I missing something?

There is no /etc/smb.conf on OpenWRT (or TOS). File you are looking for is /var/etc/smb.conf . Below is list of all essential files related to Samba.

/etc/config/samba                         ## uci config                         
/etc/samba/smb.conf.template     ## template config        
/etc/samba/smb.conf (symlink to /var/etc/smb.conf  aka /tmp/etc/smb.conf ## actual config used by Samba daemon, generated from uci config and template)
/etc/samba/smbpasswd               ## samba passwords
/var/log/log.smbd                         ## smbd log, empty as TOS is logging via syslog-ng
/var/log/log.nmbd                         ## nmbd log, empty as TOS is logging via syslog-ng

Neither the symlink /etc/samba/smb.conf nor /tmp/etc/smb.conf exist on my system.

It turns out to be pilot error. The amba4 service was not enabled; enabling it makes it work. D’oh.


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.