Win XP doesnt see samba share, but can connect to it.
I have samba configured. I know it works because I can get into it from my windows machine by using the address:
\\192.168.2.150 From there the samba server asks for the username and password like normal and works fine. What I want to know is why my windows XP machine wont see the samba hare when there set to be on the same workgroup and what not. Heres my smb.conf: [global] workgroup = home encrypt passwords = yes smb passwd file = /etc/samba/private/smbpasswd log file = /var/log/samba.log.%m.%T. security = user hosts allow = 192.168.1. 192.168.2. socket options = TCP_NODELAY [homes] comment = Home Directories writable = yes guest ok = no valid users = %S browsable = yes read only = no create mask = 0600 directory mode = 0700 [public] comment = PUBLIC path = /home/public public = yes writable = yes printable = no read only = no browsable = yes Also... for some reason I can right to my homes share.. but not the public share.. why is that? |
Here's what seems to work well for my little network: (WinXP Pro, Win2k Pro workstations). I think there is a registry tweak that has been mentioned several times before in the forums here for XP to work with Samba. I don't remember it though..
[public] writeable = yes path = /home/public force directory mode = 775 force group = users force create mode = 775 comment = Public Stuff create mode = 775 directory mode = 775 |
If you type "net view" from the Windows command line, does your Linux box appear?
And you may want to refer to this thread about a similar problem I'm having for a potentially useful registry tweak. |
nah... my linux box doesnt seem to appear when I type net view. Just my Win XP box shows up.
|
What's connecting your boxes - a router? And if so, made by whom?
|
I have the two computers connected by a netgear switch. They ping.. and what not. Yeah and they connect too but the linux amchine wont show up in the NEtwork Nieghborhood.
|
Go to http://192.168.0.1 to manage your Netgear switch (I think that should work). See if your Linux box shows up as a listed device. If it doesn't, that may be your problem. Making your Linux box master of the local domain (just edit the appropriate line in smb.conf and type "service smb restart") may resolve that issue, but it also may prevent the boxes from connecting altogether.
Bear in mind that you can simply create a shortcut to \\lin.uxb.oxe.sip\ in "My Network Places" and not worry about why WinXP doesn't see your Linux box in the Network Neighborhood. |
well.. when I try to go to http://192.168.0.1 I get nothing. Heres how my networks set up .. so youget an idea what Im workin with. I have a Linksys router doing PPPoE authentication to the DSL modem. Then I have a my 1st linux computer connected to the router (theres other poeples computers directly attached to the router, thats why we have one). This 1st machine is doing IP forwarding/masquerading, and DHCP on the 2nd nic. The 2nd nic is creating the 192.168.2.0/24 subnet. The 1st linux box is connected to the switch along with the other nix box and the win XP machine.
But I still dont know why I cant get this crap workin.. I might just have to go with the link plan.... if that works. |
In my experience, a Netgear router that does not list your computer may "hide" it from other machines on the network. You can usually fix this by reserving an IP address on the router. To do this, use must access the router setup - usually from http://192.168.0.1 or http://192.168.0.254 or the like (the first or last IP address on your network).
Beyond that, your network situation is beyond my experience level. Good luck! |
Put this in your smb.conf file and restart the smbd and nmbd service
remote announce 255.255.255.0 or whatever your netmask is for your xp and linux boxes please check my spelling on announce, seam to be a little tired. after that you should see the linux box, if not, do you have the firewal setup on your linux box. Also, you have encryption enabled on your linux box, after you see the computer, unless you have things setup correctly then your gonna have problems, but hopefully not. Also, do you know what machine is the domain master browser? |
I dont think that either machine is set up to be the subnets domain browser. How do I set this, and do I need to?
|
Well what's happening is the machines on your network from time to time have an election on who will manage this list of computers on the network, and if there are none or if there are two master browsers then some problems may occurr. Not so much if your systems aren't configured. So, what you have to ask yourself, is which computer is mostly on? If this is a windows box then it is quite easy, sort of. You would do this if it is a windows box that you want as the master browser ALL the time.
goto your Start menu and click Run. Type REGEDIT and hit ENTER goto this key: HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Services Browser Parameters and click on parameters, you should see two keys, IsDomainMaster and MaintainServerList If you doubleclick on both you set them to Yes Both of them If it is the Linux box you want to set as the domain master browser all you need to do it put these entries in the smb.conf file domain master = yes local master = yes preferred master = yes and then restart the smbd and the nmbd services and your all set did you put remote announce into your smb.conf? |
yeah I entered all that stuff into my smb.conf file. Then I restarted the file server machine, and then after that was booted, I restarted the windows machine. But for some reason the the XP machine still cant see the nix box. I want teh nix box to be the domain master.. so that I dont have to f*ck withthe registry and stuff.
[global] workgroup = HOME encrypt passwords = yes smb passwd file = /etc/samba/private/smbpasswd log file = /var/log/sambalog.%m.%T. security = user hosts allow = 192.168.2. socket options = TCP_NODELAY remote announce = 255.255.255.0 domain master = yes local master = yes preferred master = yes [homes] comment = Home Directories writable = yes guest ok = no valid users = %S browseable = yes read only = no create mask = 0600 directory mode = 0700 [public] comment = PUBLIC STUFF path = /home/public public = yes force group = users writable = yes printable = no read only = no browseable = yes directory mode = 775 create mode = 775 force directory mode = 775 force create mode = 775 |
do a "find a computer" through XP.
also, do you have the firewall going on the linux box? |
nah theres no fire wall on the internal linux machine. I have ipforwarding disabled as well. I dont know if that has anythign to do with it though. When I do the find computer... the samba server does appear... and I can connect to it and what not. But it still wont show up directly... in the Network neighborhood.
|
All times are GMT -5. The time now is 06:02 AM. |