View Full Version : samba question!
joe_0
2004-12-29, 08:30 AM CST
I haven't been able to find a solution on the forum to this...
I have this FC3 box and a winXP machine on a wireless network with a Linksys router and I'm trying to share some of the files that are on the Windows machine. I want to be able to mount this shared Windows directory on this FC3 machine.
I've tried: mount -t smbfs -o guest //192.168.1.101/shared /mnt/winxpbut I get: timeout connecting to 192.168.1.101:445
timeout connecting to 192.168.1.101:139
Error connecting to 192.168.1.101 (Operation already in progress)
11690: Connection to 192.168.1.101 failed
SMB connection failedI have tried changing '-o guest' to lots of other things, such as '-o username=joe;password=foo' etc (but there isn't actually a password) and i've tried disabling the firewall on the Linux machine but it doesn't seem to be helping. :-(
Assuming that I have setup the Windows machine ok, is there anything else I can try? I preferably want to stick with Samba to do this. I have a suspision that there is something I need to change on the router?
PhilD
2004-12-29, 08:57 AM CST
Is the connection working, i.e. can you ping back and forth, and can you see the other machine in the networking file manager? From the error it looks like something within the network setup isn't quite right.
have you tried opening up the ports 445 and 139 in you router? Also check to see if the computers are set as being within the same workgroup if, not do so or point the xp's wins to the FC3 computer.
Other than that not sure what would be causing the issue, it's not actual permissions as you are actually timing out not getting denied. On that note if you just leave the username part out i.e.
mount -t smbfs //192.168.1.101/shared /mnt/winxp
you will just get prompted for the user currently logged on's password and will get on fine.
joe_0
2004-12-29, 10:00 AM CST
Hmm, that's strange - I can't ping the XP box... hadn't thought about that before. But I can get to the windows web server. I'm not sure how I can open certain ports on the router - I can setup port forwarding etc, but that only seems to be for external connections. Any ideas? Does anyone have one of these Linksys routers working with Samba?
joe_0
2004-12-29, 12:04 PM CST
I've been looking at the router's settings and noticed that the Linux machine isn't being shown in the 'DHCP Active IP Table'. I know this isn't particularily Fedora related, but does anyone know what's going wrong? I'm guessing this is the problem... The router is the wireless Linksys (WAG54G) one. Anyone had any problems with this?
joe_0
2004-12-29, 02:21 PM CST
Right, I reset the router and seem to have made progress - though some of the other machines on the network cannot be pinged, the two in question are working ok now. I guess it's just a router problem and as it has nothing to do with Fedora, this isn't the place. :)
mrguytx
2004-12-30, 12:42 PM CST
and as a side note, I usually mount my xp shares to my FC3 box with this command:
smbmount //machinename/xp_sharename /mnt/fc3_mountname username
it should pop up and ask you for a password after that then mount the share.
DRE.ORGY.NET
2004-12-31, 11:41 PM CST
Your router have you set that up to be your dhcp server? If so check to see what range of IP's it will use say for instance you gave it a small range like 192.168.0.1-192.168.0.2 then the first two PC's that connect to the router will get IP addresses from the dhcp server any ones after that wont because your dhcp server is only configured to give out those IP addresses.
secondly I have found that mounting a window xp share using a username which doesnt have a password to be a problem (basically it doesnt work straight away and I havent been bothered looking for a solution, not to mention its a security risk).
so once both machines can ping each other you should be able to mount the windows share by using
mount //windows/share /mnt/winxp -o username=admin
this will prompt you for a password (note: it can be done using smbmount etc etc but mount is smart enough to detect what type of filesystem it is your trying to mount)
secondly if you that fails check that your windows xp machine doesnt have its built in firewall blocking filesharing (only if you have sp2) you didnt mention if you could access shares on the windows machine from other machines so I just put this in just in case
bbobbo
2005-01-04, 11:04 PM CST
and as a side note, I usually mount my xp shares to my FC3 box with this command:
smbmount //machinename/xp_sharename /mnt/fc3_mountname username
it should pop up and ask you for a password after that then mount the share.
don't forget to specify the workgroup as well. i usually use:
smbmount //machinename/xp_sharename /mnt/fc3_mountname -ousername=username,workgroup=workgroup
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.