OpenWrt Forum Archive

Topic: Samba could not work in current version

The content of this topic has been archived on 22 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I found samba could not work for a long time in current build,
released 7.09 version could work, but after that I tried later development build,
seems all could not bring up samba. the smbd and nmbd did not show in top command,
and windows machine also could not find the share directories

when I tried to restart the service, it said:
root@OpenWrt:~# /etc/init.d/samba restart
sh: cannot kill pid 774: No such process
sh: cannot kill pid 776: No such process

here is the content of /etc/samba/smb.conf:
[global]
syslog = 0
syslog only = yes
workgroup = OpenWrt
server string = OpenWrt Samba Server
security = share
encrypt passwords = yes
guest account = root
local master = yes
name resolve order = lmhosts hosts bcast

[tmp]
comment = /tmp
path = /tmp
browseable = yes
public = yes
writeable = no

am I miss something?

strace indicated that smbd was aborting after trying to read /etc/TZ which does not exist by default.  It is used to set the time zone.  There is a wiki entry about setting the time zone, but the contents of my /etc/TZ are:

CST6CDT,M3.2.0,M11.1.0


Unfortunately, nmbd gets about that far, reads the TZ file, and then exits for unknown reasons.

Hello,

did you enter your IP followed by the hostname of your router in /etc/hosts?

Since mine looks like

127.0.0.1 localhost
192.168.1.1 OpenWrt

Samba is finally starting smile

right, thanks for your tips! I also find the solution in samba howto

The discussion might have continued from here.