Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to read samba shares on XP?

Status
Not open for further replies.

heintze

Programmer
Nov 19, 2005
61
US
When I log into my desktop running fedora core 4 I can say

mount -t smbfs //192.168.1.101/C$ /mnt/sales -o username=siegfried

and see the files on my notebook running XP Pro. Hurray.

However, on my notebook I can say

net use p: \\192.168.1.4\siegfried /user:siegfried password

and it says access denied. I don't know why. I'm sure that my passwords are correct.

I have used SWAT to configure my samba server.

The notebook can ping the desktop succesfully. I turned on "encrypt passwords". The windows notebook can see the "mygroup" default workgroup name in network neighborhood but when I double click on the "my group" icon there is a long pause and nothing happens. The netbios name is "BATTLE" and I tried using "BATTLE" instead of 192.168.1.4 on the "net use" command and that did not help.

I've also tried "net view" and that never worked.

What am I doing wrong?

Thanks,
Siegfried

Here is a fragment from the smb.conf file:

[siegfried]
comment = sieg's home directory
path = /home/siegfried
username = siegfried
valid users = siegfried, root
admin users = siegfried, root
write list = siegfried, root
read only = No
hosts allow = 192.168.1.101

Here is the smbusers file
# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin
nobody = guest pcguest smbguest
siegfried = siegfried
 
Okay that is a problem. do a ifconfig on your linux box and get the interface name that your using for your LAN probably eth0 or eth1 or something. add interfaces = ethX to your global section of your smb.conf file.


Make sure you replace the X with the interface number you got from ifconfig.


Restart smb /etc/init.d/smb restart


See if you can do the start, run, \\192.168.1.4 or see it in Network Places.

I'm curious what windows OS your using also. XP Pro, Home? w2k?

Your windows box is setup with the exact name of the WORKGROUP correct?




 
One more thing.. You said you can't see the Linux box from Network Places. Were you looking under your workgroup in Network Places? You should see your Linux box listed in My Network Places within your workgroup name.

 
Here is my ifconfig (see below). I tried adding "interfaces eth0" under the global section but that did not help. I tried "interfaces 192.168.1.4" and that did not work either.

start->run->\\192.168.1.4 on the XP Pro wireless notebook (nodename=SALES) gives the same results as before: "the network path cannot be found". Windows 2000 (nodename=brauner) also gives these same results.

Concerning "My Network Places":
Network neighborhood for Win2000 shows "mygroup" but no members when I click on it. It also shows the other computers under "workgroup" including SALES.

The wireless notebook running XP Pro shows (under My Network Places") an empty workgroup called "Mobile HWI". That is very curious.

Brauner is clearly setup under workgroup="workgroup". I'm not sure about SALES.

So there is still something wrong with the samba configuration because BRAUNER should be able to see not only the workgroup but the computer as well.

Thanks,
Siegfried


eth0 Link encap:Ethernet HWaddr 00:11:09:89:D7:F9
inet addr:192.168.1.4 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::211:9ff:fe89:d7f9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:173 errors:0 dropped:0 overruns:0 frame:0
TX packets:221 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:147922 (144.4 KiB) TX bytes:54311 (53.0 KiB)
Interrupt:201 Memory:fbffc000-0

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1910 errors:0 dropped:0 overruns:0 frame:0
TX packets:1910 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1827820 (1.7 MiB) TX bytes:1827820 (1.7 MiB)
 
That was supposed to be "interfaces=eth0" not "interfaces eth0)".

I tried changing the workgroup name in the samba smb.conf from the default of "mygroup" to "BATTLEGROUP" and this new change did not show up in the network neighborhood for brauner. It still says "mygroup".

However, I just ran a little C program I wrote years ago that enumerates the computers on the network. It does not cache like network neighborhood does. Brauner shows the new workgroup "BATTLEGROUP" and the old workgroup "mygroup" as both being empty workgroups. The new workgroup "BATTLEGROUP" does not show up on SALES.

Both brauner and SALES can still ping 192.168.1.4 successfully!

Thanks,
Siegfried
 
Here is my config as a guide. Keep in mind alot of these options will not work for you.

I think what you need to do it take a look at the log files and see what kind of errors you are getting.


/var/log/samba/*


Did you say you could ping NetBIOS name "BATTLE"?

So your seeing the Workgroup of your Linux box but nothing is listed in the workgroup via MNP/NN?

Also keep in mind that when you make changes to anything in the browse list it could take 15 or so minutes to show up. I wouldn't recommend using the linux box as the Domain Master Browser or as the Preferred Master.

Let some other Windows box on your Network be the master broswer.





-------
# Global parameters
[global]
workgroup = HIDDENINC
server string = Linux Box (Redhat)
interfaces = eth0
security = SERVER
encrypt passwords = Yes
password server = hidden-nt
log file = /var/log/samba/%m.log
max log size = 150
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = No
domain master = No
dns proxy = No
wins server = 192.168.100.10
remote announce = 192.168.1.255
hosts allow = 192.168.100.

[public]
comment = Unix Share
path = /home/public
read only = No
create mask = 0775

[sandistore]
comment = sandistore.com
path = /var/ read only = No
create mask = 0775

[hyi-living]
comment = HYI-LIVING.COM
path = /var/ read only = No
create mask = 0775

[updates]
comment = RPM Updates
path = /local/updates
read only = No
create mask = 0775

[Ebay]
comment = Ebay Pictures
path = /var/ valid users = hidden
read only = No
create mask = 0775
guest ok = Yes

[TFTP]
path = /tftpboot

[Backup]
comment = Backup Of Linux Stuff
path = /local/backup
valid users = hidden
read only = No
create mask = 0775
 
Are you using DNS / WINS / host file entries?
Seen strange errors like this due to resolution problems even though IP's are used in the UNC path.


"If you always do what you've always done, you will always be where you've always been."
 
I want to thank everyone for their help in solving my problem. While trying to trouble shoot another with using xhost for a remote session, someone suggested

/etc/init.d/iptables stop

Folks had asked me before about a fire wall and I replied that I had a (hardware) firewall, but it was not between my samba client and samba server.

I lied! I did not realize Fedora Core 4 put up a firewall by default! I vaguely remember something about a software firewall in the fedore core4 installation but I had forgotten about it completely. What a painful lapse of memory!

Thank you again!

Siegfried
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top