[Samba] Win98s and Samba

Jay Hall halljay at socket.net
Sat Jul 13 21:20:03 GMT 2002


If I remember correctly, you must allow ports 137, 138, 139 and 255 
through the firewall in order to connect.



Jay

matthew peacock wrote:

> I am not much of a wizard at firwalling so I just disabled the 
> firewall completely first while not connected to the net just to see 
> if it would work. It seems to be the problem. I was able to connect to 
> the Samba server this time.
>
> Thanks Rongyao,
> We're on the right path now!
>
> Rongyao wrote:
>
>> check your firewall.
>>
>> --- matthew peacock <matrix007 at bigpond.com> wrote:
>>
>>> Hello Everyone,
>>>
>>> I am relatively new to linux and Samba and I am
>>> having some difficulties setting Samba up as a Primary Domain 
>>> Controller.
>>>
>>> Ihave read the Pdf document called "Using Samba as a
>>> PDC" by developrWorks and I have read most of the Howto
>>> documents relating to Samba.
>>>
>>> When I try to connect to my samba server with
>>> Win98se I get the message "no Domain server was able to validate your
>>> password...".
>>>
>>> I have attached a copy of the smb.conf file that I
>>> made to try to set up the PDC.
>>>
>>> Whe I set up my Win98 machine I followed the
>>> instructions in the PDF document by developerWorks; I includedd 
>>> computer
>>> name. workgroup name, User-Level access control, Wins resolution and IP
>>> address.
>>>
>>> I also cot a copy the TCPDUMP and logged the lan
>>> trafic when I tried to log my win98 machine into my samba server. I
>>> attached a copy of the output of the TCPDUMP program in a file called
>>> log.txt.
>>>
>>> On my samba server I also set up the appropriate
>>> machine and user accounts to enable the win98 machine to connect to
>>> the server. I was sure to run the smbpasswd utility to make sure that
>>> samba had the right passwords and still I couldn't get it to work.
>>>
>>> Is there anyone out there that is able to help me
>>> here. I would greatly appreciate any help from someone who can stear 
>>> me in
>>> the right direction.
>>>
>>> Thank in advance,
>>> Matt
>>>
>>>
>>>
>>>
>>>> 18:25:07.232969 barney.springfield.netbios-dgm >
>>>>
>>> 192.168.1.255.netbios-dgm:
>>>
>>>>>> NBT UDP PACKET(138) Res=0x1102 ID=0xC IP=192
>>>>>>
>>> (0xc0).168 (0xa8).1 (0x1).2 (0x2) Port=138 (0x8a)
>>> Length=203 (0xcb) Res2=0x0
>>> SourceName=BARNEY          NameType=0x00
>>> (Workstation)
>>> DestName=
>>> WARNING: Short packet. Try increasing the snap
>>> length
>>>
>>>
>>> 18:25:10.234923 barney.springfield.netbios-dgm >
>>> 192.168.1.255.netbios-dgm:
>>>
>>>>>> NBT UDP PACKET(138) Res=0x1102 ID=0xE IP=192
>>>>>>
>>> (0xc0).168 (0xa8).1 (0x1).2 (0x2) Port=138 (0x8a)
>>> Length=203 (0xcb) Res2=0x0
>>> SourceName=BARNEY          NameType=0x00
>>> (Workstation)
>>> DestName=
>>> WARNING: Short packet. Try increasing the snap
>>> length
>>>
>>>
>>> 18:25:10.235179 barney.springfield.netbios-ns >
>>> homer.springfield.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; UNICAST
>>>>>>
>>> 18:25:11.738687 barney.springfield.netbios-ns >
>>> homer.springfield.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; UNICAST
>>>>>>
>>> 18:25:13.238052 barney.springfield.netbios-ns >
>>> homer.springfield.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; UNICAST
>>>>>>
>>> 18:25:13.238850 barney.springfield.netbios-dgm >
>>> 192.168.1.255.netbios-dgm:
>>>
>>>>>> NBT UDP PACKET(138) Res=0x1102 ID=0x14 IP=192
>>>>>>
>>> (0xc0).168 (0xa8).1 (0x1).2 (0x2) Port=138 (0x8a)
>>> Length=203 (0xcb) Res2=0x0
>>> SourceName=BARNEY          NameType=0x00
>>> (Workstation)
>>> DestName=
>>> WARNING: Short packet. Try increasing the snap
>>> length
>>>
>>>
>>> 18:25:13.239156 barney.springfield.netbios-ns >
>>> homer.springfield.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; UNICAST
>>>>>>
>>> 18:25:14.742380 barney.springfield.netbios-ns >
>>> homer.springfield.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; UNICAST
>>>>>>
>>> 18:25:14.757356 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:15.507063 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:16.241818 barney.springfield.netbios-ns >
>>> homer.springfield.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; UNICAST
>>>>>>
>>> 18:25:16.242539 barney.springfield.netbios-dgm >
>>> 192.168.1.255.netbios-dgm:
>>>
>>>>>> NBT UDP PACKET(138) Res=0x1102 ID=0x1A IP=192
>>>>>>
>>> (0xc0).168 (0xa8).1 (0x1).2 (0x2) Port=138 (0x8a)
>>> Length=203 (0xcb) Res2=0x0
>>> SourceName=BARNEY          NameType=0x00
>>> (Workstation)
>>> DestName=
>>> WARNING: Short packet. Try increasing the snap
>>> length
>>>
>>>
>>> 18:25:16.242954 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:16.256739 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:16.996413 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:17.746116 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:17.761017 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:18.510793 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:19.245861 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): REGISTRATION; REQUEST;
>>>>>>
>>> BROADCAST
>>> 18:25:19.260399 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:19.995452 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): REGISTRATION; REQUEST;
>>>>>>
>>> BROADCAST
>>> 18:25:20.749836 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): REGISTRATION; REQUEST;
>>>>>>
>>> BROADCAST
>>> 18:25:21.499532 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): REGISTRATION; REQUEST;
>>>>>>
>>> BROADCAST
>>> 18:25:23.216407 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:23.968436 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:24.718106 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:28.216982 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:28.217703 barney.springfield.netbios-dgm >
>>> 192.168.1.255.netbios-dgm:
>>>
>>>>>> NBT UDP PACKET(138) Res=0x1102 ID=0x2A IP=192
>>>>>>
>>> (0xc0).168 (0xa8).1 (0x1).2 (0x2) Port=138 (0x8a)
>>> Length=194 (0xc2) Res2=0x0
>>> SourceName=BARNEY          NameType=0x00
>>> (Workstation)
>>> DestName=
>>> WARNING: Short packet. Try increasing the snap
>>> length
>>>
>>>
>>> 18:25:28.218004 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:28.966296 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:28.966575 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:29.194084 homer.springfield.631 >
>>> 192.168.1.255.631:  udp 99 (DF)
>>> 18:25:29.194557 homer.springfield.631 >
>>> 192.168.1.255.631:  udp 105 (DF)
>>> 18:25:29.715961 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:29.716183 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:33.219726 barney.springfield.netbios-ns >
>>> homer.springfield.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; UNICAST
>>>>>>
>>> 18:25:33.220379 barney.springfield.netbios-dgm >
>>> 192.168.1.255.netbios-dgm:
>>>
>>>>>> NBT UDP PACKET(138) Res=0x1102 ID=0x34 IP=192
>>>>>>
>>> (0xc0).168 (0xa8).1 (0x1).2 (0x2) Port=138 (0x8a)
>>> Length=194 (0xc2) Res2=0x0
>>> SourceName=BARNEY          NameType=0x00
>>> (Workstation)
>>> DestName=
>>> WARNING: Short packet. Try increasing the snap
>>> length
>>>
>>>
>>> 18:25:33.220639 barney.springfield.netbios-ns >
>>> homer.springfield.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; UNICAST
>>>>>>
>>> 18:25:34.718822 barney.springfield.netbios-ns >
>>> homer.springfield.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; UNICAST
>>>>>>
>>> 18:25:34.718999 barney.springfield.netbios-ns >
>>> homer.springfield.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; UNICAST
>>>>>>
>>> 18:25:36.218155 barney.springfield.netbios-ns >
>>> homer.springfield.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; UNICAST
>>>>>>
>>> 18:25:36.218347 barney.springfield.netbios-ns >
>>> homer.springfield.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; UNICAST
>>>>>>
>>> 18:25:37.737520 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:37.742428 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:38.487304 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:38.492604 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:39.238487 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>>> 18:25:39.242115 barney.springfield.netbios-ns >
>>> 192.168.1.255.netbios-ns:
>>>
>>>>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
>>>>>>
>> === message truncated ===>
>>
>>> [global]
>>>
>>>   workgroup = springfield
>>>   netbios name = homer
>>>   server string = homer samba server %v
>>>   socket options = TCP_NODELAY IPTOS_LOWDELAY
>>> SO_RCVBUF=8192 SO_SNDBUF=8192
>>>
>>>   os level = 64
>>>   preferred master = yes
>>>   local master = yes
>>>   domain master = yes
>>>   wins support = yes
>>>   security = user
>>>   encrypt passwords = yes
>>>   domain logons = yes
>>>   smb passwd file = /etc/samba/smbpasswd
>>>   log file = /var/log/samba/log.%m
>>>   max log size = 50
>>>   log level = 2
>>>   hosts allow = 127.0.0.1 192.168.1.0/255.255.255.0
>>>
>>> ;   logon script = %m.bat
>>> ;   logon script = %U.bat
>>>
>>> ;   logon home = \\%L\%U\.profile
>>>   logon home = \\%L\%U
>>>   logon drive = H:
>>>   logon path = \\%L\Profiles\%U
>>>   logon script = netlogon.bat
>>>     printcap name = lpstat
>>>   load printers = yes
>>>
>>>   printing = cups
>>>
>>> ;   printer admin = @adm
>>>
>>>
>>>
>>>
>>>
>>> #  unix password sync = Yes
>>> #  passwd program = /usr/bin/passwd %u
>>> #  passwd chat = *New*UNIX*password* %n\n
>>> *ReType*new*UNIX*password* %n\n
>>>
>> *passwd:*all*authentication*tokens*updated*successfully*
>>
>>> ;  username map = /etc/samba/smbusers
>>> ;   include = /etc/samba/smb.conf.%m
>>> ;  socket options = TCP_NODELAY SO_RCVBUF=8192
>>> SO_SNDBUF=8192
>>> ;   remote browse sync = 192.168.3.25 192.168.5.255
>>> ;   remote announce = 192.168.1.255 192.168.2.44
>>>
>>> # add user script = /usr/sbin/useradd -d /dev/null
>>> -g machines -c 'Machine Account' -s /bin/false -M %u
>>>
>>> ; add user script = /usr/sbin/useradd -s /bin/false
>>> %u
>>>
>>>
>>>
>>>
>>>
>>> [homes]
>>>   comment = Home Directories
>>>   browseable = no
>>>   writable = yes
>>>
>>> [netlogon]
>>>   comment = Network Logon Service
>>> ;   path = /var/lib/samba/netlogon
>>>   path = /home/netlogon
>>>   read only = yes
>>>   browseable = no
>>>   writelist = matt
>>> ;   guest ok = yes
>>> ;   writable = no
>>> ;   share modes = no
>>>
>>>
>>> [Profiles]
>>> ;   path = /var/lib/samba/profiles
>>>   path = /home/samba/profiles
>>>   browseable = no
>>>   writable = yes
>>>   create mask = 0600
>>>   directory mask = 0700
>>>
>>
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Yahoo! Autos - Get free new car price quotes
>> http://autos.yahoo.com
>>
>
>
>
>







More information about the samba mailing list