Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

samba start

Status
Not open for further replies.

piti

Technical User
Apr 12, 2001
627
SK
i have problem with starting samba

while booting i receive:
Starting SMB Services OK
Starting NMB Services OK

and the daemons aren't running

when started manualy everything is ok
what am i doing wrong?
 
Hi,

I'd imagine its something to do with the order in which your smb/nmb services are starting. Perhaps they are trying to start before the network interfaces are active or suchlike, i.e at too low a runlevel. Try setting them such that they only start at runlevel 3 (console multi-user on redhat) and above ...

/sbin/chkconfig --level 345 smb on
/sbin/chkconfig --level 345 nmb on

If you're <not> running Redhat, find out the correct runlevels for your distribution and do something similar. For example, with Suse the equivalent runlevels to redhat's 3 (Multi-user console) & 5 (X-Gui) are 2 & 3. With Suse you'd use 'rctab -l' to list runlevels and 'rctab -e' to edit. You may also be able to do it with Yast/Yast2 but I'm not too sure..

Rgds

Rgds
 
well i did it already

i added a symlink to smb into my rc3.d directory (according to it worked
btw:
the daemons were &quot;started&quot; after initializing any network interfaces
and i think in runlevel 3 as the messages about started services appeared after message &quot;entering runlevel 3&quot; or something similar to that

thanx anyway
 
I had the same problem! Followed advice to look in the samba log files
/var/log/samba/log.smb (and log.nmb)
There was &quot;can't find host qwert.domain&quot; I changed the host name in /etc/host file to qwert.domain and away it went!

&quot;Log files are your friend&quot;!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top