I'm having problems accessing Samba shares from my XP Pro machine. Samba
2.2.7 is installed on two Redhat 8.0 machines and configured using SWAT. I
have user level security and encrypted passwords setup. I have a printer
shared on both servers as well as home directories and one restricted access
share. My printers are setup for guest access so all machines will always
be able to print. One server acts as a WINS server, although it's probably
not necessary since my workgroup doesn't span subnets.
I have a Windows '98 laptop that can access all shares without any trouble.
I can use smbclient to access all shares without any trouble. With my
Windows XP Pro system, I can't access any of the file shares including the
home directories on either Samba box. I have included the relevant output
from the logfile for my XP machine as well as my working Win '98 machine.
Samba finds the username in /etc/samba/smbpasswd, but both the NT MD4 and
LanMan password checks fail from the XP machine. I have no idea why because
my Win '98 machine works just fine using the same login credentials. I have
also included the smb.conf file for the server that was used for testing.
Any help would be greatly appreciated, as I'm scratching my head on this
one. Thanks in advance...
WINDOWS XP PRO (not working)
[2002/11/30 19:32:01, 3] smbd/process.c:switch_message(685)
switch message SMBsesssetupX (pid 5199)
[2002/11/30 19:32:01, 3] smbd/sec_ctx.c:set_sec_ctx(329)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2002/11/30 19:32:01, 5] smbd/uid.c:change_to_root_user(217)
change_to_root_user: now uid=(0,0) gid=(0,0)
[2002/11/30 19:32:01, 3] smbd/reply.c:reply_sesssetup_and_X(858)
Domain=[LIBERTY] NativeOS=[Windows 2002 2600 Service Pack 1] NativeLan
ndows 2002 5.1]
[2002/11/30 19:32:01, 3] smbd/reply.c:reply_sesssetup_and_X(868)
sesssetupX:name=[jimsiff]
[2002/11/30 19:32:01, 6] param/loadparm.c:lp_file_list_changed(2297)
lp_file_list_changed()
file /etc/samba/smb.conf -> /etc/samba/smb.conf last mod_time: Sat Nov
46:25 2002
[2002/11/30 19:32:01, 10] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1346)
pdb_getsampwnam: search by name: jimsiff
[2002/11/30 19:32:01, 10] passdb/pdb_smbpasswd.c:startsmbfilepwent(167)
startsmbfilepwent_internal: opening file /etc/samba/smbpasswd
[2002/11/30 19:32:01, 5] passdb/pdb_smbpasswd.c:getsmbfilepwent(438)
getsmbfilepwent: returning passwd entry for user jimsiff, uid 500
[2002/11/30 19:32:01, 7] passdb/pdb_smbpasswd.c:endsmbfilepwent(258)
endsmbfilepwent_internal: closed password file.
[2002/11/30 19:32:01, 10] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1388)
pdb_getsampwnam: found by name: jimsiff
[2002/11/30 19:32:01, 4] lib/substitute.c:automount_server(177)
Home server: mbuna
[2002/11/30 19:32:01, 4] lib/substitute.c:automount_server(177)
Home server: mbuna
[2002/11/30 19:32:01, 4] smbd/password.c:smb_password_ok(475)
smb_password_ok: Checking SMB password for user jimsiff
[2002/11/30 19:32:01, 5] smbd/password.c:smb_password_ok(489)
smb_password_ok: challenge received
[2002/11/30 19:32:01, 4] smbd/password.c:smb_password_ok(499)
smb_password_ok: Checking NT MD4 password
[2002/11/30 19:32:01, 4] smbd/password.c:smb_password_ok(504)
smb_password_ok: NT MD4 password check failed
[2002/11/30 19:32:01, 4] smbd/password.c:smb_password_ok(518)
smb_password_ok: Checking LM password
[2002/11/30 19:32:01, 4] smbd/password.c:smb_password_ok(523)
smb_password_ok: LM password check failed
[2002/11/30 19:32:01, 2] smbd/password.c:pass_check_smb(575)
pass_check_smb failed - invalid password for user [jimsiff]
[2002/11/30 19:32:01, 2] smbd/reply.c:reply_sesssetup_and_X(975)
NT Password did not match for user 'jimsiff'!
[2002/11/30 19:32:01, 2] smbd/reply.c:reply_sesssetup_and_X(985)
Defaulting to Lanman password for jimsiff
[2002/11/30 19:32:01, 10] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1346)
pdb_getsampwnam: search by name: jimsiff
[2002/11/30 19:32:01, 10] passdb/pdb_smbpasswd.c:startsmbfilepwent(167)
startsmbfilepwent_internal: opening file /etc/samba/smbpasswd
[2002/11/30 19:32:01, 5] passdb/pdb_smbpasswd.c:getsmbfilepwent(438)
getsmbfilepwent: returning passwd entry for user jimsiff, uid 500
[2002/11/30 19:32:01, 7] passdb/pdb_smbpasswd.c:endsmbfilepwent(258)
endsmbfilepwent_internal: closed password file.
[2002/11/30 19:32:01, 10] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1388)
pdb_getsampwnam: found by name: jimsiff
[2002/11/30 19:32:01, 4] lib/substitute.c:automount_server(177)
Home server: mbuna
[2002/11/30 19:32:01, 4] lib/substitute.c:automount_server(177)
Home server: mbuna
[2002/11/30 19:32:01, 4] smbd/password.c:smb_password_ok(475)
smb_password_ok: Checking SMB password for user jimsiff
[2002/11/30 19:32:01, 5] smbd/password.c:smb_password_ok(489)
smb_password_ok: challenge received
[2002/11/30 19:32:01, 4] smbd/password.c:smb_password_ok(499)
smb_password_ok: Checking NT MD4 password
[2002/11/30 19:32:01, 4] smbd/password.c:smb_password_ok(504)
smb_password_ok: NT MD4 password check failed
[2002/11/30 19:32:01, 4] smbd/password.c:smb_password_ok(518)
smb_password_ok: Checking LM password
[2002/11/30 19:32:01, 4] smbd/password.c:smb_password_ok(523)
smb_password_ok: LM password check failed
[2002/11/30 19:32:01, 2] smbd/password.c:pass_check_smb(575)
pass_check_smb failed - invalid password for user [jimsiff]
[2002/11/30 19:32:01, 3] smbd/reply.c:reply_sesssetup_and_X(1042)
Registered username nobody for guest access
[2002/11/30 19:32:01, 10] smbd/password.c:register_vuid(288)
register_vuid: (99,99) nobody jimsiff LIBERTY guest=1
WINDOWS 98 (Working)
[2002/11/30 12:25:26, 3] smbd/process.c:switch_message(685)
switch message SMBsesssetupX (pid 4522)
[2002/11/30 12:25:26, 3] smbd/sec_ctx.c:set_sec_ctx(329)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2002/11/30 12:25:26, 5] smbd/uid.c:change_to_root_user(217)
change_to_root_user: now uid=(0,0) gid=(0,0)
[2002/11/30 12:25:26, 3] smbd/reply.c:reply_sesssetup_and_X(858)
Domain=[TEKTRONIX] NativeOS=[Windows 4.0] NativeLanMan=[Windows 4.0]
[2002/11/30 12:25:26, 3] smbd/reply.c:reply_sesssetup_and_X(868)
sesssetupX:name=[JIMSIFF]
[2002/11/30 12:25:26, 6] param/loadparm.c:lp_file_list_changed(2297)
lp_file_list_changed()
file /etc/samba/smb.conf -> /etc/samba/smb.conf last mod_time: Fri Nov 29
01:
04:33 2002
[2002/11/30 12:25:26, 2] smbd/reply.c:reply_sesssetup_and_X(985)
Defaulting to Lanman password for jimsiff
[2002/11/30 12:25:26, 3] smbd/reply.c:reply_sesssetup_and_X(858)
Domain=[TEKTRONIX] NativeOS=[Windows 4.0] NativeLanMan=[Windows 4.0]
[2002/11/30 12:25:26, 3] smbd/reply.c:reply_sesssetup_and_X(868)
sesssetupX:name=[JIMSIFF]
[2002/11/30 12:25:26, 6] param/loadparm.c:lp_file_list_changed(2297)
lp_file_list_changed()
file /etc/samba/smb.conf -> /etc/samba/smb.conf last mod_time: Fri Nov 29
01:
04:33 2002
[2002/11/30 12:25:26, 2] smbd/reply.c:reply_sesssetup_and_X(985)
Defaulting to Lanman password for jimsiff
[2002/11/30 12:25:26, 10] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1346)
pdb_getsampwnam: search by name: jimsiff
[2002/11/30 12:25:26, 10] passdb/pdb_smbpasswd.c:startsmbfilepwent(167)
startsmbfilepwent_internal: opening file /etc/samba/smbpasswd
[2002/11/30 12:25:27, 5] passdb/pdb_smbpasswd.c:getsmbfilepwent(438)
getsmbfilepwent: returning passwd entry for user jimsiff, uid 500
[2002/11/30 12:25:27, 7] passdb/pdb_smbpasswd.c:endsmbfilepwent(258)
endsmbfilepwent_internal: closed password file.
[2002/11/30 12:25:27, 10] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1388)
pdb_getsampwnam: found by name: jimsiff
[2002/11/30 12:25:27, 4] lib/substitute.c:automount_server(177)
Home server: mbuna
[2002/11/30 12:25:27, 4] lib/substitute.c:automount_server(177)
Home server: mbuna
[2002/11/30 12:25:27, 4] smbd/password.c:smb_password_ok(475)
smb_password_ok: Checking SMB password for user jimsiff
[2002/11/30 12:25:27, 5] smbd/password.c:smb_password_ok(489)
smb_password_ok: challenge received
[2002/11/30 12:25:27, 4] smbd/password.c:smb_password_ok(499)
smb_password_ok: Checking NT MD4 password
[2002/11/30 12:25:27, 4] smbd/password.c:smb_password_ok(504)
smb_password_ok: NT MD4 password check failed
[2002/11/30 12:25:27, 4] smbd/password.c:smb_password_ok(518)
smb_password_ok: Checking LM password
[2002/11/30 12:25:27, 4] smbd/password.c:smb_password_ok(520)
smb_password_ok: LM password check succeeded
[2002/11/30 12:25:27, 4] passdb/pampass.c:smb_pam_start(455)
smb_pam_start: PAM: Init user: jimsiff
smb.conf
[global]
workgroup = BROWNSUN
netbios name = MBUNA
server string = Samba Server
encrypt passwords = Yes
map to guest = Bad Password
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
printing = lprng
[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
browseable = No
[web]
path = /var/www/html
write list = +web
read only = No
create mask = 0664