Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
WinXP client cannot see contents of Samba Share
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Floog
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2002
Posts: 116

PostPosted: Sun Apr 06, 2003 7:30 pm    Post subject: WinXP client cannot see contents of Samba Share Reply with quote

Hi Group:

Suddenly, I am seeing quirky behavior with the WinXP client trying to access my linux Samba server.

When I first set the WinXP client up a few weeks ago, the client box would need to type in Username and Password before entering the Samba share on the linux box.

Now, the WinXP client sees the "mw" share under My Network Places ----> View Workgroup Computers whether the Samba server daemon is on/off. Also, the WinXP client is never queried for Username or Password now. The XP client always sees the "mw" share regardless of whether the Samba daemon is on/off. The client sees the "mw" share but CANNOT see any of the data on the "mw" share. I try logging off the WinXP user and then relogging, but that doesn't help.

Here's a copy of my /etc/samba/smb.conf:

[global]
workgroup = mw
netbios name = mw
hosts allow = 192.168.1.
server string = MW
security = user
socket options = TCP_NODELAY
os level = 64
guest account = guest
share modes = yes
local master = yes
preferred master = yes
domain logons = yes
wins support = yes
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
log file = /var/log/samba/log.%M

[data]
path = /opt/mw
valid users = elisa
public = yes
writeable = yes
####### printable = yes
browseable = yes

#[cdrom]
# comment = CDROM
# path = /mnt/cdrom
# read only = no
# browseable = yes
# public = yes

#A printer can be added like this:
#[ljet]
# comment = "Laserjet"
# path = /var/spool/lpd/lp
# printer = lp
# public = yes
# printable = yes
# print command = lpr -r -h
# -P %p %s

## --- End Of SMB.CONF

As you can see, my setup is very basic. I've just begun working with file sharing stuff. What do you think happened? What do I need to reconfigure with the Win XP client so that it can see the contents of the "mw" share?

Thank you for your time and help.

Mike
Back to top
View user's profile Send private message
joycea
Apprentice
Apprentice


Joined: 23 Jul 2002
Posts: 191
Location: Kingston, Canada

PostPosted: Sun Apr 06, 2003 7:41 pm    Post subject: Reply with quote

I would imagine what has happened is that Windows XP has cached your password (the reason it doesn't ask for it anymore) and the Samba server has expired this cached password. This happened to me earlier and took a bit to figure out what happened. I would recommend giving the user a new Samba password on the Linux box and see if that helps. I'm not sure how to change/remove passwords from a Windows XP cache.

Code:

smbpasswd -U <user in question>


That should do it for you, hope this helps!
Back to top
View user's profile Send private message
Floog
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2002
Posts: 116

PostPosted: Mon Apr 07, 2003 12:22 am    Post subject: Reply with quote

Hi Joycea,

this is quite a puzzle.
I tried what you suggested but still no go. The WinXP client sees samba share "mw" but can't see the contents and can't copy files to it.

I then looked up XP AND cached passwords under Microsofts online help and came up with a little tutorial about cached passwords. I went into Control Panel ---> Administrative Tools ---> Local Security Settings ---> Security Options. I changed the following to "0" (zero):

Interactive logon: Number of previous logons to cache: 0

But this still didn't help. The same problem still exists.

Interestingly, now I'm noticing an error message that shows up in the system tray when XP boots up. It says the following:

A duplicate name exists on the network.

Kind of odd. I can't figure out what the error is telling me and what I should do about it. But I'm guessing it would help solve the Samba problem.

I'll keep picking away at it. Please respond if you can think of anything else I might try.

Best regards.
Mike

joycea wrote:
I would imagine what has happened is that Windows XP has cached your password (the reason it doesn't ask for it anymore) and the Samba server has expired this cached password. This happened to me earlier and took a bit to figure out what happened. I would recommend giving the user a new Samba password on the Linux box and see if that helps. I'm not sure how to change/remove passwords from a Windows XP cache.

Code:

smbpasswd -U <user in question>


That should do it for you, hope this helps!
Back to top
View user's profile Send private message
christsong84
Veteran
Veteran


Joined: 06 Apr 2003
Posts: 1003
Location: GMT-8 (Spokane)

PostPosted: Mon Apr 07, 2003 12:46 am    Post subject: Reply with quote

The Duplicate name means another computer has the same name as your XP machine...What's the comptuer name of your XP client? Your server is named "mw" The cuplicate name could be the entire problem...not sure though. See what happens if you re-name your comptuer to something else.
Back to top
View user's profile Send private message
Floog
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2002
Posts: 116

PostPosted: Mon Apr 07, 2003 11:21 am    Post subject: Reply with quote

Hi Christsong:

Thank you for your reply.

I thought I would post this, as I think I found a solution to the problem even though I haven't figured out yet why the solution I found, works.

You can see in my previously posted smb.conf that my workgroup and netbios name were exactly the same: "mw".

I simply commented out the "netbios name" and now the WinXP client can see the samba share on "my network places" (or sumtin like that) and upon double-clicking the share, it is prompted for the userid and password that was created on the linux samba server.

Once id and password are supplied, the XP client can see the contents of the share.

Now, I need to do some hunting on google about what the problem was with using the same name "mw" for both the workgroup name and the netbios name.

Oh, I forget to mention that I also changed the samba user name from "elisa" to "elisa99". The XP client machine name shows up as "elisa" on the network, so due to the error message I also thought it might help to differentiate the samba username to something different.

This is kind of a unique situation, actually finding something that works, but now having to figure out why.

Thanks for your time and help.

Mike

christsong84 wrote:
The Duplicate name means another computer has the same name as your XP machine...What's the comptuer name of your XP client? Your server is named "mw" The cuplicate name could be the entire problem...not sure though. See what happens if you re-name your comptuer to something else.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum