LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-23-2003, 08:44 AM   #1
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Rep: Reputation: 30
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
 
Old 10-23-2003, 09:31 AM   #2
london_geezer
Member
 
Registered: Oct 2003
Location: London, UK
Distribution: Debian Sarge & Mac OS X 10.3.8
Posts: 31

Rep: Reputation: 15
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:

Last edited by london_geezer; 10-23-2003 at 09:39 AM.
 
Old 10-23-2003, 09:48 AM   #3
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Original Poster
Rep: Reputation: 30
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
 
Old 10-23-2003, 09:59 AM   #4
london_geezer
Member
 
Registered: Oct 2003
Location: London, UK
Distribution: Debian Sarge & Mac OS X 10.3.8
Posts: 31

Rep: Reputation: 15
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.
 
Old 10-23-2003, 10:29 AM   #5
wisey
LQ Newbie
 
Registered: Oct 2003
Location: Kent, England
Distribution: RH9 and Debian 3.0r1
Posts: 11

Rep: Reputation: 0
what happens when you try to connect manually?

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

Anything?
 
Old 10-23-2003, 11:14 AM   #6
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Original Poster
Rep: Reputation: 30
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
 
Old 10-23-2003, 03:12 PM   #7
jackstoage
Member
 
Registered: Sep 2003
Posts: 79

Rep: Reputation: 15
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.
 
Old 10-24-2003, 02:20 AM   #8
wisey
LQ Newbie
 
Registered: Oct 2003
Location: Kent, England
Distribution: RH9 and Debian 3.0r1
Posts: 11

Rep: Reputation: 0
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
 
Old 10-24-2003, 08:28 AM   #9
jackstoage
Member
 
Registered: Sep 2003
Posts: 79

Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
win XP can't connect to linux box using samba nebs Linux - Networking 3 02-20-2005 11:42 AM
Samba PDC: i can't create shares on win box dbos Linux - Software 6 08-15-2002 11:01 PM
How do I access files on Win box from Linux box zanew Linux - Networking 5 06-12-2002 11:58 AM
Internet access for Linux box in Win Network mmvaldez Linux - Networking 3 10-06-2001 06:27 AM
Samba with linux box, 2 win boxes, cable, router kuber Linux - Networking 2 09-04-2001 08:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration