[NBLUG/talk] Help: SAMBA

micxz micxz at micxz.com
Thu Jun 12 06:56:24 PDT 2003


On Wed, 11 Jun 2003, ME wrote:

> I dont' see any responses to this one, and it wil take me a while to go
> through all of the posts in the other thread...
>
> So here goes.

Thanks;

> If you see nothing getting logged, but the daemon is running, and the
> datestamp on the logfile is the same date/time as the start time of the
> samba services, then I would try testing on the local machine.

When I restart the deamon via "/etc/init.d/smb restart" I see the correct
start time and no errors in "/var/log/samba/log.smbd". But I see nothing
when restarting in messages.

> # netstat -an
> See if andy of the samba ports (137,138,139) are listening on the samba
> server.

Yep it's there I see:
mars:/home/micxz # netstat -anp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
PID/Program name
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN
18449/smbd
> Next, try to telnet to 139 from the server:
> # telnet localhost 139

micxz at mars:~> telnet localhost 139
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

> If you see :
> # telnet localhost 139
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
>
> If the above works, then go to the windows box and try to telnet to the
> linux box at the same port:
> c:> telnet ip.addres.of.linuxbox 139

I get a blank console screen on the windows "command prompt" for a while
the "Connection to host lost."

> If connection is refused or unavailable while the above worked, then this
> suggests a firewall/filter issue. A new kernel may use iptables instead of
> ipchains. If such is the case, then you may have different rules in one vs
> the other loaded at boot. (One more strict than another)

Odd because all my firewall events are logged in messages, and I see
nothing about denying any packets from 10.10.10.77 (my laptop) in there.

> # iptables
> or
> # ipchains

I have no ipchains I have iptables:
mars:/home/micxz # iptables
iptables          iptables-restore  iptables-save

> One should tell you it was not configured for your kernel.
What about my kernel?

OK OK  I found this file while looking for a place to add the logging
fuction to the startup scripts:
mars:/etc/samba # cat /etc/sysconfig/samba
## Path:        Network/File systems/Samba
## Description: Samba configuration
## Type:        list(classic,ldap)
## Default:     classic
#
# Set the Samba Security Authentication Mechanism to "classic" or "ldap".
# Classic in this context is authentication via /etc/samba/smbpasswd.
#
SAMBA_SAM="classic"

SO this proves that it's using smbpasswd and not /etc/passwd!!!

I tried "ldap" whatever that is but no go. My old config used the system
pass file (/etc/passwd), I added a user with
smbadduser
and all works great!!!

THANKS for all your help. I found more config files due to your
suggestions THANKS!!

Micxz



More information about the talk mailing list