LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-01-2002, 08:27 AM   #1
ppuddick
Member
 
Registered: Feb 2001
Location: UK
Distribution: Ubuntu 9.10. Debian 5, RHEL 5.3
Posts: 66

Rep: Reputation: 15
Unhappy Accessing Redhat box from Windows Network


Me Again! I have installed the Samba 2.2.5 rpm on my Redhat 7.2 box and it is now appearing in Network Neighborhood in my Windows network. Whenever I try to access the Linux box from a Windows machine I get the following error message "\\Redhat is not accessible. The network path was not found." What Am I doing wrong here? I can ping back and forth no problem and the Linux box can access the Proxy and Mail servers on the Windows network over IP. I appreciate that this is at a slightly higher level than pure IP, but I'm really stuck on this one. I have used both SWAT and webmin to configure Samba but I still can't access Linux from Windows. Aaarrgh!!!
 
Old 07-01-2002, 09:13 AM   #2
Pepepotamo
LQ Newbie
 
Registered: Jun 2001
Location: Paris
Distribution: Debian
Posts: 15

Rep: Reputation: 0
Step by step ...
1) Can you see your linux box on network neighbourhood from windows box?
2) can you post the result of command "netstat -tpan"? (from root user) just to verify samba is running
3) did you create shared folders on your linux box (samba conf file) ?

Bye
 
Old 07-01-2002, 09:29 AM   #3
ppuddick
Member
 
Registered: Feb 2001
Location: UK
Distribution: Ubuntu 9.10. Debian 5, RHEL 5.3
Posts: 66

Original Poster
Rep: Reputation: 15
Smile

I can see the Linux box in network neighborhood on all Windows machines on my network. Samba is definately running. I tried the netstat -tpan command. I could post the results up here but is it worth it? I know Samba is running. I created shared folders on the Linux box using the SWAT tool. Everything else seems to work a treat apart from Samba. Where's that brick wall?
 
Old 07-01-2002, 09:37 AM   #4
ALittleSlow
LQ Newbie
 
Registered: Feb 2002
Location: Bloomington, IN USA
Distribution: RedHat 6.x-7.x
Posts: 2

Rep: Reputation: 0
I recently had the same problem. In my smb.conf, I had

security = user
password server = *

but with security = user, password server should not be set. When I commented out the password server line, it worked fine.
-Brian
 
Old 07-01-2002, 10:27 AM   #5
ppuddick
Member
 
Registered: Feb 2001
Location: UK
Distribution: Ubuntu 9.10. Debian 5, RHEL 5.3
Posts: 66

Original Poster
Rep: Reputation: 15
Question

Thanks Brian, But if I look at my smb.conf file there are no lines about security or password. I did, however, set the security to user using the SWAT tool. I'm really stumped now!
 
Old 07-01-2002, 10:37 AM   #6
GAVollink
Member
 
Registered: Apr 2002
Location: Bronx, NY
Distribution: Ubuntu
Posts: 371

Rep: Reputation: 34
It may be nothing is wrong.

Question - Did you set an SMB Password for your user? This is not done by default.

check the manual for "smbpasswd"
 
Old 07-01-2002, 10:41 AM   #7
emj
LQ Newbie
 
Registered: Jun 2002
Location: Bolivia/Tarija And Sweden/Stockholm
Distribution: Debian
Posts: 4

Rep: Reputation: 0
Could be a problem with firewall (RH has firewalls) see if the packets reach your machine.

tcpdump -ni eth0 host windowmachinesipnummber

and look for errors from SAMBA in /var/log/

/disclaimer dont know much about samba.. just usual error checking..
 
Old 07-01-2002, 10:46 AM   #8
GAVollink
Member
 
Registered: Apr 2002
Location: Bronx, NY
Distribution: Ubuntu
Posts: 371

Rep: Reputation: 34
EMJ has a good point - I did have to enable the three Samba Service ports under IPChains on my RedHat 7.2 dist at home - iptables changes made for BOTH tcp and udp connections.

netbios_ns 137/tcp
netbios_ns 137/udp
netbios_dgm 138/tcp
netbios_dgm 138/udp
netbios_ssn 139/tcp
netbios_ssn 139/udp
 
Old 07-01-2002, 10:50 AM   #9
kaktus
LQ Newbie
 
Registered: Jul 2001
Location: france
Distribution: red hat 7.1 & mandrake 7.2
Posts: 3

Rep: Reputation: 0
have you created a samba user (smbadduser) for your win machine ?

smbadduser unixid:ntid

try webmin for admin of shared samba filez (much more easier this way)

here is a basic smb.conf file, with one share called shared. fit it to your config

[global]
interfaces = your local IP and mask (ie 192.168.0.254/24
domain master = yes
security = share
encrypt passwords = yes
local master = yes
workgroup = WORKGROUP
netbios name = server
log file = /usr/local/samba/var/log.%m
os level = 33
max log size = 50
default = global
hosts allow = your local network, and loopback (ie 192.168.0. 127.0.0.1)

[shared]
path = /path/to/what/you/want
create mode = 0664
writeable = yes
force group = wingroup
comment = shared filez
valid users = winuser
delete readonly = yes
printable = yes
wide links = no
public = no
force user = winuser

Last edited by kaktus; 07-01-2002 at 11:16 AM.
 
Old 07-01-2002, 11:33 AM   #10
ppuddick
Member
 
Registered: Feb 2001
Location: UK
Distribution: Ubuntu 9.10. Debian 5, RHEL 5.3
Posts: 66

Original Poster
Rep: Reputation: 15
Talking

Thank you all. I've done it - you've all been a great help! I think (and remember I'm new to Linux) it was a culmination of Firewall issues and me having to generate the Samba password file. Still, it works now and I've learn't a hell of a lot in the past 5 hours. Once again, Thank you!
 
  


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
Accessing Samba FROM Windows XP box dhatcher2 Linux - Networking 11 11-06-2004 10:31 AM
SuSe: Need Help Accessing a Windows Box on Network! dr00t Linux - Networking 3 08-20-2004 08:45 PM
Network and accessing internet via XP box owain Linux - Networking 14 06-05-2004 02:55 PM
accessing a windows box from linux Ůmegaflops Linux - Networking 3 07-26-2002 01:20 AM
accessing box from internal network but not from external JereBear Linux - Networking 12 05-12-2001 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:12 AM.

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