LinuxQuestions.org
Visit Jeremy's Blog.
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 06-02-2003, 12:03 AM   #1
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Rep: Reputation: 15
how do open ports for samba


nmap tells me samba ports are closed this box can see others shares but no one can see its shares. SWAT tells me samba is runnning. How can i open these ports. thanks.
 
Old 06-02-2003, 12:30 AM   #2
Muddy
Member
 
Registered: May 2002
Location: Ohio
Distribution: Mandrake 9.2 Custom Kernel & Mythtv!
Posts: 256

Rep: Reputation: 30
we kinda need more info, what distro? how did you setup security when you installed linux? do you have zone alarm or some firewall software running on your windoze machine? Do you have encrypted passwords turned on or off in samba?
 
Old 06-02-2003, 12:58 AM   #3
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Original Poster
Rep: Reputation: 15
the box with the closed ports is freebsd (i don't mean to offend). My linux boxes and m$ xp can all be seen BY host "bsd" but they cannot see bsd's shares. "bsd" is set to default "moderate" security as it is behind a NAT'ing redhat firewall.
here is smb# Global parameters

[global]
workgroup = OURHOUSE
netbios name = BSD
server string = bsd Samba Server
update encrypted = Yes
guest account = smbguest
log file = /var/log/log.%m
max log size = 50
dns proxy = No
# wins support = Yes
valid users = randi, root, jacob
admin users = randi, root, jacob
read list = randi, root, jacob
write list = randi, root, jacob
printer admin = randi, root, jacob
hosts allow = randi, aptiva


[homes]
comment = Home Directories
path = /home
read only = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[tmp]
comment = aptiva temp
path = /tmp
read only = No

[aptiva]
path = /tmp
.conf
 
Old 06-02-2003, 01:05 AM   #4
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Original Poster
Rep: Reputation: 15
i should also mention that when clients attempt to contact "bsd" with smbclient or NET USE they get (not listening for calling name) and "session request ro *SMBSERVER failed complaints.
 
Old 06-02-2003, 02:33 AM   #5
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Original Poster
Rep: Reputation: 15
samba .org explained my situation. there is a bug existing with the hosts allow option. I had to remove the hostnames and place their ip addresses instaead. Thanks for your help.
 
Old 06-02-2003, 02:35 AM   #6
apeekaboo
Member
 
Registered: Apr 2003
Location: Stockholm/Sweden
Distribution: Kubuntu, Debian, Slax
Posts: 91

Rep: Reputation: 16
The ports used for samba is 135,137,139 and 445 if I remember correctly.
Not all ports might be needed since this depends on what you want to do.
But allowing those ports should be enough for all samba traffic.
 
  


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
Cannot Open Mail Server Ports 25, 110, and 220. Other Ports will open. Binxter Linux - Newbie 9 11-29-2007 03:03 AM
FDC4 samba ports closed, how do I open? klnasveschuk Fedora 1 08-19-2005 10:18 AM
open ports on linksys, i have ssh open but thats it PlatinumRik Linux - Security 1 07-07-2005 11:38 AM
samba ports open to public - i think i'm screwed davalos Linux - Security 11 12-27-2004 12:06 AM
how can i open ports for samba? wlfdgcrkz *BSD 2 06-02-2003 02:11 PM


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