Stephen Liu
2002-Aug-13 07:31 UTC
[Samba] WinXP cant connect Samba_Server which can connect WinXP for files sharing
Hi All Folks.
I encountered following problem
WinXP can't connect Samba_Server but Samba_Server can connect WinXP for
files sharing
WinXP box and Samba_Server are connected directly via a crossover cable as
experiment. Firewall of WinXP is off and ipchains on Samba_Server also off.
(Remark: The WinXP box has been tested via direct connection with a
crossover cable to a WinME box/Win98 box for files transfer. No problem found)
Static IP address
Samba_Server (RH7.3) 192.168.0.1
Subnet Mask 255.255.255.0
WinXP 192.168.0.2
Subnet Mask 255.255.255.0
Workgroup SEC
Name of Samba_Server IWILL
Share folder test
Name of WinXP M40G
Share folder Shared
On Window Exploror. SEC and M40G shown up under MSWindows Network. But
IWILL disappears
WinXP box
======== >ping 192.168.0.1
Pinging 192.168.0.1 with 32 bytes of data:
Reply from 192.168.0.1: bytes=32 time<1ms TTL=128
Reply from 192.168.0.1: bytes=32 time<1ms TTL=128
Reply from 192.168.0.1: bytes=32 time<1ms TTL=128
Reply from 192.168.0.1: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Start Run \\WILL\test --> OK
"The net path was not found"
Start Run \\192.168.0.1 --> OK
WinXP shows up, not Samba_Server. This looks strange to me.
Start Run \\192.168.0.2 --> OK
Popup for password. But I have no password for both boxes. Click
"OK"
does not work.
Samba_Server
==========#/etc/samba/smb.conf
# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2002/08/05 16:52:24
# Global parameters
[global]
workgroup = SEC
security = SHARE
guest account = M40G
[test]
comment = test share
path = /test
writable = yes
browseable = yes
follow symlinks = yes
wide links = yes
public = yes
read only = No
guest ok = Yes
guest only = Yes
# /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.M2 localhost.localdomain
192.168.0.1 IWILL
# /bin/hostname [ENTER]
localhost.localdomain
The hostname "IWILL' does not show up ???
In "Network Configuration" window
under "HOSTS"
196.168.0.1 IWILL (shown up)
# ping 192.168.0.2
PING 192.168.0.2 (192.168.0.2) from 192.168.0.2 : 56(84) bytes of data.
64 bytes from 192.168.0.2: icmp_seq=1 ttl=255 time=0.174 ms
64 bytes from 192.168.0.2: icmp_seq=2 ttl=255 time=0.087 ms
64 bytes from 192.168.0.2: icmp_seq=3 ttl=255 time=0.087 ms
64 bytes from 192.168.0.2: icmp_seq=4 ttl=255 time=0.087 ms
64 bytes from 192.168.0.2: icmp_seq=5 ttl=255 time=0.086 ms
64 bytes from 192.168.0.2: icmp_seq=6 ttl=255 time=0.086 ms
64 bytes from 192.168.0.2: icmp_seq=7 ttl=255 time=0.086 ms
64 bytes from 192.168.0.2: icmp_seq=8 ttl=255 time=0.084 ms
#testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[test]"
Loaded services file OK.
Press enter to see a dump of your service definitions
# Global parameters
[global]
coding system client code page = 850
code page directory = /usr/share/samba/codepages
workgroup = SEC
netbios name netbios aliases netbios scope
server string = Samba 2.2.3a
interfaces bind interfaces only = No
security = SHARE
encrypt passwords = No
update encrypted = No
allow trusted domains = Yes
hosts equiv min passwd length = 5
map to guest = Never
null passwords = No
obey pam restrictions = No
password server smb passwd file = /etc/samba/smbpasswd
root directory pam password change = No
passwd program = /bin/passwd
passwd chat = *new*password* %n\n *new*password* %n\n *changed*
passwd chat debug = No
username map password level = 0
username level = 0
unix password sync = No
restrict anonymous = No
lanman auth = Yes
use rhosts = No
log level = 2
syslog = 1
syslog only = No
log file max log size = 5000
timestamp logs = Yes
debug hires timestamp = No
debug pid = No
debug uid = No
protocol = NT1
large readwrite = No
max protocol = NT1
min protocol = CORE
read bmpx = No
read raw = Yes
write raw = Yes
nt smb support = Yes
nt pipe support = Yes
announce version = 4.5
announce as = NT
max mux = 50
max xmit = 65535
name resolve order = lmhosts host wins bcast
max packet = 65535
max ttl = 259200
max wins ttl = 518400
min wins ttl = 21600
time server = No
unix extensions = No
change notify timeout = 60
deadtime = 0
getwd cache = Yes
keepalive = 300
lpq cache time = 10
max smbd processes = 0
max disk size = 0
max open files = 10000
read size = 16384
socket options = TCP_NODELAY
stat cache size = 50
use mmap = Yes
total print jobs = 0
load printers = Yes
printcap name = /etc/printcap
disable spoolss = No
enumports command addprinter command deleteprinter
command show add printer wizard = Yes
os2 driver map strip dot = No
character set mangled stack = 50
stat cache = Yes
domain admin group domain guest group machine
password timeout = 604800
add user script delete user script logon script
logon path = \\%N\%U\profile
logon drive logon home = \\%N\%U
domain logons = No
os level = 20
lm announce = Auto
lm interval = 60
preferred master = Auto
local master = Yes
domain master = Auto
browse list = Yes
enhanced browsing = Yes
dns proxy = Yes
wins proxy = No
wins server wins support = No
wins hook kernel oplocks = Yes
oplock break wait time = 0
add share command change share command delete share
command config file preload lock dir =
/var/cache/samba
utmp directory wtmp directory utmp = No
default service message command dfree command
valid chars remote announce remote browse sync socket
address = 0.0.0.0
homedir map = auto.home
time offset = 0
NIS homedir = No
source environment panic action hide local users = No
host msdfs = No
winbind uid winbind gid template homedir =
/home/%D/%U
template shell = /bin/false
winbind separator = \
winbind cache time = 15
winbind enum users = Yes
winbind enum groups = Yes
comment path alternate permissions = No
username guest account = M40G
invalid users valid users admin users read
list write list printer admin force user
force group read only = Yes
create mask = 0744
force create mode = 00
security mask = 0777
force security mode = 00
directory mask = 0755
force directory mode = 00
directory security mask = 0777
force directory security mode = 00
inherit permissions = No
guest only = No
guest ok = No
only user = No
hosts allow hosts deny status = Yes
nt acl support = Yes
max connections = 0
min print space = 0
strict allocate = No
strict sync = No
sync always = No
write cache size = 0
max print jobs = 1000
printable = No
postscript = No
printing = bsd
print command = lpr -r -P%p %s
lpq command = lpq -P%p
lprm command = lprm -P%p %j
lppause command lpresume command queuepause command
queueresume command printer name use client driver = No
default devmode = No
printer driver printer driver file = /etc/samba/printers.def
printer driver location default case = lower
case sensitive = No
preserve case = Yes
short preserve case = Yes
mangle case = No
mangling char = ~
hide dot files = Yes
hide unreadable = No
delete veto files = No
veto files hide files veto oplock files map
system = No
map hidden = No
map archive = Yes
mangled names = Yes
mangled map browseable = Yes
blocking locks = Yes
fake oplocks = No
locking = Yes
oplocks = Yes
level2 oplocks = Yes
oplock contention limit = 2
posix locking = Yes
strict locking = No
share modes = Yes
copy include exec preexec close = No
postexec root preexec root preexec close = No
root postexec available = Yes
volume fstype = NTFS
set directory = No
wide links = Yes
follow symlinks = Yes
dont descend magic script magic output
delete readonly = No
dos filemode = No
dos filetimes = No
dos filetime resolution = No
fake directory create times = No
vfs object vfs options msdfs root = No
[test]
comment = test share
path = /test
read only = No
guest only = Yes
guest ok = Yes
Kindly advise. Thanks in advance.
Stephen Liu
Robert Blayzor
2002-Aug-13 07:42 UTC
[Samba] RE: [Samba] WinXP can't connect Samba_Server which can connect WinXP for files sharing
> WinXP can't connect Samba_Server but Samba_Server can connect > WinXP for > files sharingStupid question, is File and Print services enabled on the XP box?> On Window Exploror. SEC and M40G shown up under MSWindows > Network. But > IWILL disappearsSo it shows up at one point, but then goes away?> # /etc/hosts > # Do not remove the following line, or various programs > # that require network functionality will fail. > 127.0.0.1 localhost.M2 localhost.localdomain > 192.168.0.1 IWILL > > # /bin/hostname [ENTER] > localhost.localdomain > > The hostname "IWILL' does not show up ???Well a couple of things here. 1) maybe your doing DNS lookup before hosts? Or 2) Set the hostname with superuser. If you don't see your IWILL box, one thing to try is putting: netbios name = WILL In your smb.conf .. Perhaps that might do it. -- Robert Blayzor, BOFH INOC, LLC rblayzor@inoc.net Meets quality standards: Compiles without errors.
Stephen Liu
2002-Aug-19 19:19 UTC
[Samba] WinXP can't connect Samba_Server which can connect WinXP for files sharing
Hi Robert, Thanks for your response. OS :- RH7.3 At 12:40 PM 8/13/2002 -0400, Robert Blayzor wrote:> > WinXP can't connect Samba_Server but Samba_Server can connect > > WinXP for > > files sharing > >Stupid question, is File and Print services enabled on the XP box?Yes>Well a couple of things here. 1) maybe your doing DNS lookup before >hosts? Or 2) Set the hostname with superuser. > >If you don't see your IWILL box, one thing to try is putting: > > netbios name = WILL > >In your smb.conf .. Perhaps that might do it.Tried but could not solve the problem. Now I download "Samba-2.2.5-1" from Samba.org website and upgrade my samba application # rpm -qa|grep samba samba-2.2.5-1 # service smb start Starting SMB services: [ OK ] Only "smb services" indicated. "nmb service" disappears (which appears simultaneously in the previous verseion 2.2.3a) Is it correct for version 2.2.5-1 ??? Kindly advise me whether I need to have it reinstall ??? Thanks Stephen