Click to See Complete Forum and Search --> : Samba Not Starting
NUtack97
11-04-2001, 12:54 PM
Hey Guys,
I just upgraded from Manrdake 8 to 8.1 and everything seems to be running fine with the exception of samba. Whenever I run /etc/rc.d/init.d/smb start or restart it brings up nmbd just fine but smbd doesn't come up at all. I've checked smb.conf file and any other samba-related files for any possible discrepancies, but to no avail. Any ideas upon WHY smbd doesn't want to start?
-Tack
NUtack97
11-04-2001, 09:33 PM
Ok,
I got a little enlightenment, but things are still not working properly.
Looking in my smbd logs, I noticed the following line whenever smbd -D is being executed:
[2001/11/04 19:51:33, 0] lib/util_sock.c :open_socket_in(819)
bind failed on port 139 socket_addr=172.16.1.15 (Cannot assign requested address)
Now, when I comment out the line Bind interfaces only = Yes , smbd can be started, but I am unable to access any shares on my server (files, printers, etc.).
Any ideas or suggestions on what I should do? I'm just not sure what to do in response to that log entry. Thanks in advance!!
-TAck
NUtack97
11-07-2001, 09:09 PM
*bump* Any ideas guys? I can't seem to get this thing working at all.....
jumpedintothefire
11-07-2001, 10:12 PM
Did you fill out the line: interfaces = with something line this:
interfaces = 192.168.1.1/24?
NUtack97
11-07-2001, 10:23 PM
Yes,
that line reads as follows:
interfaces = 172.16.1.0/24 127.0.0.1/24
Currently, I have two computers on the internal ip: 172.16.1.1 and 172.16.1.15. My server's internal ip is set at 172.16.1.100.
Any ideas?
jumpedintothefire
11-07-2001, 10:26 PM
try removing the 127.0.0.1/24 or change it to /8
NUtack97
11-07-2001, 10:33 PM
I tried both scenarios and smbd still does not want to start....Any other possibilities? I've been looking all over the web for possible solutions, but there are none to be found at this point in time.
Thanks for the suggestions, though! Keep 'em coming, because I am completely clueless @ this point :confused: :confused: :confused:
jumpedintothefire
11-07-2001, 10:39 PM
Post your conf file, the crystal ball is broken. ;) I hate to play hunt and peck ;)
NUtack97
11-07-2001, 10:43 PM
Ok, here's my smb.conf file:
# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2001/08/25 19:41:59
# Global parameters
[global]
workgroup = ACME
netbios name = MARVIN
server string = Samba SMB Server
interfaces = 172.16.1.0/24 127.0.0.1/24
bind interfaces only = Yes
security = SHARE
log file = /var/log/samba/log.%m
# log level = 3
max log size = 50
read bmpx = Yes
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
os level = 65
preferred master = Yes
dns proxy = No
wins support = Yes
guest account = smbuser
writeable = Yes
guest ok = Yes
hosts allow = 172.16.1.0/24 # 172.16.1.15
printing = cups
print command = /usr/bin/lp -d%p -oraw %s; rm %s
lpq command = /usr/bin/lpstat -o%p
lprm command = /usr/bin/cancel %p-%j
queuepause command = /usr/bin/disable %p
queueresume command = /usr/bin/enable %p
hide dot files = No
[public]
comment = Public Stuff
path = /home/public
create mask = 0664
directory mask = 0775
[data]
comment = Data
path = home/samba/data
create mask = 0660
directory mask = 0770
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
lpq command = lpstat -o %p
lprm command = cancel %p-%j
[Web]
path = /home/httpd/html
comment = Web Page Stuff
Now keep in mind, that this config file worked perfectly before upgrading to 8.1 Mandrake. Thanks for checking things out!
-Tack :D
jumpedintothefire
11-07-2001, 11:27 PM
With samba stopped, what does netstat -na give you?
Did the upgrade upgrade samba too?
and your conf file just won't play nice with it. Maybe check the /usr/doc/samba-ver/examples/smb.conf file to see if any thing looks different.
**** missed it earlier, the interfaces =
I think should be just 172.16.1.x/24 where x=your last number of the ip address your using(looks like 15 from the log) This is bypassed unless you have
bind interfaces only = Yes
With Samba stopped do a ps -A is there any samba processes running? Then do kill pid#. check again is it back? If yes then check /etc/inetd.conf for some lines relating to samba ports and comment them out and restart inetd.
NUtack97
11-08-2001, 09:31 PM
Ok,
That second part in your last post seems to have done the trick....sort of.
I changed the interfaces line to say interfaces = 172.16.1.100/24. With this, samba appears to start properly, but I am unable to browse the network on my windoze box.
Looking @ samba's log file, I get this message:
smbd/connection.c:yield_connection(62)
yield_connection: tdb_delete failed with error Record does not exist.
[2001/11/08 20:29:06, 0] lib/access.c:check_access(320)
Denied connection from (172.16.1.1)
Now, as I mentioned before, I had this all working correctly prior to upgrading to mandrake 8.1 (and I do believe it updated samba as well). Hope this helps, and thanks for the suggestions!!
-Tack
jumpedintothefire
11-08-2001, 10:16 PM
might be dying on the "hosts allow = 172.16.1.0/24 # 172.16.1.15"
try: hosts allow = 172.16.1.0/24
maybe it overwrote the smbpasswd file.
try:
cat /etc/smbpasswd
Are there any entries? If not add the users and create the passwords
NUtack97
11-15-2001, 10:30 PM
I've got this right now : "hosts allow = 172.16.1.101/24 127.0.0.1/24" and it's not working either.
I changed the "hosts deny = NONE and that seems to work like a charm! I'm trying to figure out what's wrong with my hosts allow line, but I don't see why that isn't working like it should.
That smbpasswd file is empty, and it always has been. I set my samba up pretty much like the NHF listed here @ linuxnewbie. Any reasons why this hosts allow line isn't working??
-TAck
jumpedintothefire
11-15-2001, 10:44 PM
127.0.0.1/24 should be 127.0.0.1
172.16.1.101/24 should be 172.16.1.101
If you want the whole lan then just 172.16.1
and not 172.16.1.0/24, I was not paying attention, sorry long day.... :rolleyes:
Not have a password might be a bad idea, IMHO
[ 15 November 2001: Message edited by: jumpedintothefire ]