LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-10-2005, 05:46 PM   #1
K_smolka
LQ Newbie
 
Registered: Mar 2004
Location: UK
Distribution: red hat 9.0
Posts: 19

Rep: Reputation: 0
Samba isdoing my head in


Newbie trying to setup samba, all seems well and i can view the samba server on the network and i am able to ping from windows and from linux ok. I think i have opened the ports using some command i found off the net

When i click on the samba server in windows it just says network path could not be found.

Any idea of how to could solve this problem would be most appreciated as ive been working on this for a few days.

many thanks

karl
 
Old 05-10-2005, 06:40 PM   #2
PerfectReign
Member
 
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Rep: Reputation: 33
Just out of curiosity -

1. Which GUI are you running KDE, Gnome, something else? (I'm assuming Gnome, since you're Red Hat.)

2. The Windows - is it on a domain? On the same LAN as your Linux box? Do you need authentication to the shares? Do you have any shares setup?
 
Old 05-11-2005, 01:11 AM   #3
uzairkhan
Member
 
Registered: Apr 2005
Location: Islamabad, Pakistan
Distribution: Mandrake 10.0 & Window XP professional
Posts: 32

Rep: Reputation: 15
check the host.allow and host.deny files in the etc directory. May be they are denying the connection.

Also, check the

allow hosts = (some ip's);
line in the global section in

/etc/samba/smb.conf

file.

I am also a newbie so this may not work... but since my samba server is working okay, so i think this might help you..

take care.... by the way, i am not sure, but i dont think the GUI that may be running has any thing to do with samba....
 
Old 05-11-2005, 02:09 AM   #4
Tanc
Member
 
Registered: Sep 2003
Location: France
Distribution: Debian etch
Posts: 99

Rep: Reputation: 15
Could be helpful if u post your smb.conf first... some of us could probably validate it.
That'll be a first step.
 
Old 05-11-2005, 06:02 AM   #5
K_smolka
LQ Newbie
 
Registered: Mar 2004
Location: UK
Distribution: red hat 9.0
Posts: 19

Original Poster
Rep: Reputation: 0
hi guys tanks for the info, yes i am using gnome.

i had a look at the hist.deny file ands that was all fine.
Below is a copy of my smb.conf file, if anyone could see any problems your help would be most appreciated

[global]
workgroup = tennyson
netbios name = samba
server string = samba
hosts allow = 192.168.1.100
log file = /var/log/samba/%m.log
max log size = 0
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NO_DELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no

[homes]
comment = Home directories
browseable = yes
writeable = yes

[karl]
comment = my linux share
path = /home/karl
browseable = yes
writeable = yes
writeable = yes
printable = no
guest ok = yes
create mask = 0765

i am able to see the samba server on the windows box in a different group to that of my laptop/. But when i click on it it just says network path could not be found.

Is there any chance the fire wall on my router is blocking it.

any help would be amazing

karl
 
Old 05-11-2005, 07:04 AM   #6
Tanc
Member
 
Registered: Sep 2003
Location: France
Distribution: Debian etch
Posts: 99

Rep: Reputation: 15
smb.conf can be used to allow and deny access by IP addresses. This is done by listing IP addresses or subnets on the lines beginning with hosts allow and hosts deny.

Have u tried to change hosts allow = 192.168.1.100 by hosts allow = 192.168. ?

If it is not working ,give us your pc's ip adresses .. is it dhcp assigned ?

Don't forget to restart Samba .... ( even if the lastest version can automatically detect the updates )

Last edited by Tanc; 05-11-2005 at 07:11 AM.
 
Old 05-11-2005, 07:16 AM   #7
PerfectReign
Member
 
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Rep: Reputation: 33
Quote:
Originally posted by Tanc

Don't forget to restart Samba .... ( even if the lastest version can automatically detect the updates )

...or better yet, reboot. (I know it isn' t "the linux way" but it works for me!)
 
Old 05-11-2005, 07:24 AM   #8
K_smolka
LQ Newbie
 
Registered: Mar 2004
Location: UK
Distribution: red hat 9.0
Posts: 19

Original Poster
Rep: Reputation: 0
dont all of that and still no go.

I think my ip address is dhcp assigned..... its automatically assigned by the router if thats what you mean

the ip address of my notebook is 192.168.1.100 and the ip address of the linux bix is 192.168.1.103

i have tried all that has been suggested ans still no go. Windows just says that the netowkr patch could not be found.

The samba machine is on a different work group, but i dont think that is a prob/

any ideas
 
Old 05-11-2005, 07:41 AM   #9
Tanc
Member
 
Registered: Sep 2003
Location: France
Distribution: Debian etch
Posts: 99

Rep: Reputation: 15
well ... not sure this is the best way to do it but try to stop iptable service for example

service iptables stop
 
Old 05-11-2005, 07:55 AM   #10
K_smolka
LQ Newbie
 
Registered: Mar 2004
Location: UK
Distribution: red hat 9.0
Posts: 19

Original Poster
Rep: Reputation: 0
dont all of that and still no go.

I think my ip address is dhcp assigned..... its automatically assigned by the router if thats what you mean

the ip address of my notebook is 192.168.1.100 and the ip address of the linux bix is 192.168.1.103

i have tried all that has been suggested ans still no go. Windows just says that the netowkr patch could not be found.

The samba machine is on a different work group, but i dont think that is a prob/

any ideas
 
Old 05-11-2005, 10:16 AM   #11
brainiac
Member
 
Registered: Jan 2005
Location: middle of a cornfield, IL
Distribution: Kanotix HD Install, Debian Testing, XP Pro,Vista RC1
Posts: 145

Rep: Reputation: 15
On your smb.conf hosts allow = line try 192.168.1. that should allow anything in the 192.168.1. addressing to work. The "dot" at the end is important. This works for me and gives all six of my machines access.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
I'm in over my head ... chemdawg Linux - Software 4 09-20-2005 11:11 AM
Multi-monitor Issues on RH9, Geforce 4 Ti Dual Head + TNT2 Single Head the letter b Linux - Newbie 3 12-05-2004 12:23 AM
Samba doing my head in - cannot join domain lachesis Linux - Networking 8 06-19-2004 05:12 AM
samba swat = dumb head majortool Linux - Software 6 09-30-2003 05:08 AM
x86 Solaris 9 XSun and Matrox G550 dual-head... one head down, one to go. finegan Solaris / OpenSolaris 4 03-11-2003 01:39 PM


All times are GMT -5. The time now is 12:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration