OpenWrt Forum Archive

Topic: Samba

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

Hi,

I tried using samba by using the tutorial on the howto page.
If I try to start samba using init scripts it doesn't show an error but no process is created.
Trying to launch the process manually doesn't give a error either.
I searched the forum and many people have this problem.

Does anyone has the solution?

Maybe some tips on how to debug this problem.

This is my /etc/hosts
127.0.0.1 localhost.
192.168.1.1 moya.

Btw moya isn't set elsewhere. And in linux this should be in /etc/hostname

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

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

(Last edited by belrpr on 10 Jul 2007, 13:36)

start samba manually and paste the errors here.

smbd -s /etc/smb.conf

exobyte wrote:

start samba manually and paste the errors here.

smbd -s /etc/smb.conf

There is no error that is the strangest part.
I see it start and get killed directly.

try smbd -b (that give some build info)
try smbd --debug=10 -s /etc/smb.conf

If you get too much on #2, reduce the number following debug.

I'm having the same problem as belrpr.  Even with -d 10 I get no output at all.

Also, --debug is not implemented in this version of smbd.

belrpr, I assume that you're using kamikaze?  What version? (broadcom 2.4 kernel??)

brucebertrand wrote:

I'm having the same problem as belrpr.  Even with -d 10 I get no output at all.

Also, --debug is not implemented in this version of smbd.

belrpr, I assume that you're using kamikaze?  What version? (broadcom 2.4 kernel??)

Exacly. I think something is wrong with the 2.4 kernel and samba combination.

Haven't got the time to try the command my self but had some simelar commands which outputted nothing.
My first ASUS WL 500GP orginal firmware failed so I had to put test version to surf again.

ANy input?

bump

The exact same problem is on netgear wgt634u.

I have a hosts file as was suggested in other threads.  The logfile it produces with debug=10 contains nothing and the process just starts and exits.

Hey i had that prob all you need to do is put OpenWrt into /etc/hosts

e.g.

127.0.0.1 localhost OpenWrt

i just installed it and was having a problem so i checked here.

i tried
smbd
i noticed the process was running by checking ps

so i killed it then tried
smbd -s /etc/smb.conf
this did not work

then i realized the config file was in /etc/samba/smb.conf

so i tried
smbd -s /etc/samba/smb.conf

now it's running

I fixed my problem this way:

my /etc/host :
127.0.0.1       localhost  OpenWrt

If I change the Openwrt then I got exact the same error.
I am looking further to find the problem.

Found the problem.
Note this is on Whiterussian!

nvram get wan_hostname
gives OpenWrt

changing this name and putting in the host a different name made everything just fine.
So either you change both host and the nvram or just 1.

Probably on kamikaze it will be the uci var.

Kami 7.07, Asus WL-500gP, static IP, file "/etc/hosts" contain righ hostname of the device.

Small problem - smbd not started normally after system boot ("/etc/init.d/samba enable"). "/etc/init.d/samba start" work fine.

Solve: change time of samba start: "mv /etc/rc.d/S50samba /etc/rc.d/S70samba".

(Last edited by ansov on 17 Sep 2007, 20:44)

The discussion might have continued from here.