LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba access WIN XP shares from linux box (https://www.linuxquestions.org/questions/linux-software-2/samba-access-win-xp-shares-from-linux-box-107547/)

rmanocha 10-23-2003 08:44 AM

Samba access WIN XP shares from linux box
 
hi!
I am unable to access my Win XP shares from a linux box, however i can easily do the vice versa. I have tried almost anything in the book...i have added my win xp user name to my linux user names, added the passwd to smbpasswd and some other things. i cant access the share using either linneighbourhood.
something very strange that happens is that i am able to log into the win xp shares and mount them but then they turn out to be the sahres that i have defined from my linux box so basically i can see my shares(the ones i have defined for my windows box) through my windows box back on my linux box but i cant see the XP shares. This happens using both using LinNeighbourhood and Lisa in KDE.
also when i am able to see the Shared Documents of my XP box, i mount it but then when i go to the console and do "ls" in the folder....it says permission denied....i have done this both as root and user.
i do not know what is going on.
plz help me.
Rishabh

london_geezer 10-23-2003 09:31 AM

Re: Samba access WIN XP shares from linux box
 
I couldn't get linux (rh9) and windows xp pro to share untill I stopped the linux firewall, a service named iptables and also stopped the windows xp internet connection firewall, after that it worked great.

PLEASE BE CAREFUL: don't stop your firewalls on internet connected systems for obvious reasons, play with these settings off-line.

This is a very simplistic approach, I'm sure you can tweak the iptables config to browse the samba shares and safely access the internet as well, but you'll need more involved iptables advice from someone else.

Hope this helps.

Regards

LG:

rmanocha 10-23-2003 09:48 AM

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


this is my output from iptables -L

i dont think it is a firewall issue sincei have switched off all firewalls on my home network.
also the last time i tried accessing the computer it showed me the SharedDocs directory from my windows box but after mounting it...it said that i do not have permissions to browse it.
also i think i must tell you that i cant access the SharedDocs of my windows box from the windows installation on my compuetr either but there are other shares that i can access(the ones i am really looking to access). However these do not show up in the folder list once i have scanned the other windows machine.
i know this mught be confusing but this is what is going on.
please let me know if u need me to post my smb.conf file here.
thanks

london_geezer 10-23-2003 09:59 AM

Re:
 
Currently the best advice I can give is to look at the Samba support pages, I don't have enough knowledge to be useful.

http://us3.samba.org/samba/support/

All the best.

LG.

wisey 10-23-2003 10:29 AM

what happens when you try to connect manually?

smbclient //a.b.c.d/<share> <password> -U <user>

Anything?

rmanocha 10-23-2003 11:14 AM

added interface ip=192.168.0.3 bcast=192.168.0.255 nmask=255.255.255.0
added interface ip=172.16.14.1 bcast=172.16.14.255 nmask=255.255.255.0
added interface ip=172.16.100.1 bcast=172.16.100.255 nmask=255.255.255.0
session request to 192.168.0.2 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[MSHOME] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

this is what i get when i do:
smbclient //192.168.0.2/<shared folder> <passwd> -U <user>

however when i put the shared folder as SharedDocs and do the same i do get a command line saying:
smb: \>
when i do ls here i get:
NT_STATUS_ACCESS_DENIED listing \*

60792 blocks of size 524288. 30769 blocks available
this is exactly what happend when i use gnomes lan manager too....it shows me the shared docs bit then says i dont have accesss to the directory...however i still cannot see the other shared folders.
plz help
thx

jackstoage 10-23-2003 03:12 PM

can't browse w2k box form rh9 box
 
I am having a similar problem, and I don't think it is samba related. Here is my setup:

rh9 box, w2k box, xp laptop networked via access point-router. Win boxes use wireless nics rh9 box is cabled to AP-R. Win boxes have typical admin and user accounts and browse shared folders and printers fine. Rh9 box has one user account, dad, other than root. Access to dad is granted via samba to the network. Win boxes browse dad fine. In rh9 network server window the network workgroup is detected via samba. That icon expands to show the names of all 3 boxes, each autodetected by samba. They are: linux, server and 6har (the laptop). I can browse linux which is a browse of itself through samba and I can browse 6har but when I click on the server icon (the w2k box) after a time out i receive: "Couldn't display smb://server/ because no host "server" could be found. Check that the spelling is correct and that your proxy settings are correct."

What's confusing is that I can browse the laptop from rh9 box but not the other, so its nothing in the smb.conf. Not only that, I once could browse the offending box but later lost it with the same smb.conf. I had been messing with the wireless nic software on the offending box for an unrelated issue just prior to lossing it. There is no firewall involved but the nics and AP-R are encrypted, but, again, i browse one and no the other. The wireless components are all different manufacturers.

Frankly I am going to try another nic or yank that one completely out and remove all memory of it from my computer and then reinstall it from scratch ( I already tried everything short of that).

Food for thought.

wisey 10-24-2003 02:20 AM

To be honest I am not one hundred percent on this, although you should make
sure the permissions are ok on the NT box as Samba appears to be working
fine.

Sorry I can't be more help :(

jackstoage 10-24-2003 08:28 AM

I hate to steal rmanocha's forum but hopefully reading about someone elses problems helps to remove that aloneness one sometimes feels and may trigger an idea.

I found last night that my problem was hardware. I had a second nic on the offending box from which, for some reason, samba couldn't get a response. The devil's in the details, but in my description above I left out that I was running a second phoneline network ICS'ing to two other w2k boxes. the rh9 box couldn't see that one. Disabling that phoneline nic solved the problem.

I hope my experience helps rmanocha and thanks to all and this forum.

runnin amuck,

jack


All times are GMT -5. The time now is 11:02 AM.