LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Samba share (https://www.linuxquestions.org/questions/linux-newbie-8/samba-share-650993/)

TalkingMarble 06-23-2008 02:51 AM

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

billymayday 06-23-2008 03:07 AM

Did you open the relevant ports on the firewall?

TalkingMarble 06-23-2008 03:18 AM

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.

billymayday 06-23-2008 03:33 AM

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

TalkingMarble 06-23-2008 07:12 AM

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/


All times are GMT -5. The time now is 09:03 AM.