OpenWrt Forum Archive

Topic: Samba not starting?!

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

Hi,

I am trying to start samba server, but it won't work! I installed it with ipkg install samba (from backports) but after running /etc/init.d samba start nothing happens.

With top I searched for samba... but it isn't there.

with smbpasswd - a username I added my root account.


Or is there an other samba server that works?!



Btw: I cooked the kernel with vfat support like in the wiki pages... for mmc support (already works fine)



thanks!

Did you setup a smb.conf file?  The processes would be smbd and nmbd not "samba".

Have you run a Samba server on Linux before?

Of course I have set up the smb.conf smile And yes, I have installed and configured some samba servers on linux... and no, it's not smbd and nmbd, it's samba. smile

root@unknown:/etc/init.d# ls
S05nvram     S35firewall  S50dropbear  S50telnet    S60dnsmasq   rcS
S10boot      S40network   S50httpd     S60cron      S99done      samba
root@unknown:/etc/init.d#

I haven't run it on OpenWRT lately but last I recall the startup script may be samba, but the processes that show up were smbd and nmbd.

I asked those questions, since you didn't specify them up-front.

Good luck.

Okay, but the processes aren't running, I am sure of that. smile

So what could it be?

My /etc/init.d/rcS tells me that it wouldnt run your /etc/init.d/samba at boot time because it doesnt start with an 'S'. So naming it /etc/init.d/S80samba may help here. If you installed the samba package to a different place than the default, you should add according LD_LIBRARY_PATH, PATH variables to the startup script. Or am I thinking too simple?

Well ok, so it's not autostart, no problem. But after manually starting it, or trying to, it doesn't run.

Its installed to tha standard place. simply with "ipkg install samba".

The discussion might have continued from here.