LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-23-2008, 02:51 AM   #1
TalkingMarble
Member
 
Registered: May 2008
Location: Deventer, The Netherlands
Distribution: CentOS 5.0
Posts: 50

Rep: Reputation: 17
Samba share


Hello,

I installed and configured samba on a Centos 5.0 server and created a share [backup] that i want to make available in our windows environment. I am using the following smb.conf file:

[global]
workgroup = DOMAIN
Netbios name = SERVERNAME
realm = XX.DOMAIN.NET
preferred master = no
server string = Samba file and print server
security = ADS
encrypt passwords = yes
log level = 3
log file = /var/log/samba/%m
max log size = 50
printcap name = cups
printing = cups

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
printable = yes
guest ok = no
writable = no

[backup]
comment = share backup files
path = /home/share
public = no
writable = yes
browseable = yes
printable = no
create mask = 0765

I added the samba server to the windows 2003 domain (net ads join), but when i am trying to access the samba share through windows explorer i get the following message "no network provider accepted the given network path".

I already checked the following:
-i used testparm to check the smb.conf file
-i ran "kinit" to check kerboros
-i confirmed that our samba server was available in Active directory
-i used "smb status" to check that the samba service is running

I searched several websites in order to solve my problem, but i can't seem to get it work.

Any help will be appriceated.

TIA
 
Old 06-23-2008, 03:07 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Did you open the relevant ports on the firewall?
 
Old 06-23-2008, 03:18 AM   #3
TalkingMarble
Member
 
Registered: May 2008
Location: Deventer, The Netherlands
Distribution: CentOS 5.0
Posts: 50

Original Poster
Rep: Reputation: 17
Which ports should be open? I didn't open any ports on the firewall, as i can reach the samba server with a PING ipaddress.
 
Old 06-23-2008, 03:33 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Sure, but ping uses ICMP type 8.

You need to check (try google), but ports 137-139 and sometimes port 445. I honestly can't recall if you need udp and tcp or not
 
Old 06-23-2008, 07:12 AM   #5
TalkingMarble
Member
 
Registered: May 2008
Location: Deventer, The Netherlands
Distribution: CentOS 5.0
Posts: 50

Original Poster
Rep: Reputation: 17
You were right about the firewall. I added port 137-139 and 445 in the iptables file, and after a restart i was able to access my share through windows explorer. Thank you for pointing me in the right direction.

For those who have the same problem i include an URL, where to read how to adjust the iptable file: http://troy.jdmz.net/samba/fw/
 
  


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
show the samba share but can't mount the share badall Linux - Server 3 05-30-2007 04:24 AM
searching samba share breaks connection to share Elomis Linux - Server 1 05-11-2007 12:28 AM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:34 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