Samba Shares not appearing on client computers.

Asked by jbowen7

I'm having difficulty finding samba shares from clients on the same network. These shares can be mapped to, but don't show up in Places(mac osx), network neighborhood (xp), places network (ubuntu). All of these computers are on the same network.

Details: ports are opened, configs are fine, testparm produces no errors.

iptables -L:

Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpts:netbios-ns:netbios-ssn
ACCEPT tcp -- anywhere anywhere tcp dpts:netbios-ns:netbios-ssn

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpts:netbios-ns:netbios-ssn
ACCEPT udp -- anywhere anywhere udp dpts:netbios-ns:netbios-ssn

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpts:netbios-ns:netbios-ssn
ACCEPT tcp -- anywhere anywhere tcp dpts:netbios-ns:netbios-ssn

testparm:

rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Processing section "[Storage]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
 server string = %h server (Samba, Ubuntu)
 interfaces = 127.0.0.0/8, eth0, tun0
 map to guest = Bad User
 obey pam restrictions = Yes
 pam password change = Yes
 passwd program = /usr/bin/passwd %u
 passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
 unix password sync = Yes
 syslog = 0
 log file = /var/log/samba/log.%m
 max log size = 1000
 dns proxy = No
 usershare allow guests = Yes
 panic action = /usr/share/samba/panic-action %d

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

[print$]
 comment = Printer Drivers
 path = /var/lib/samba/printers

[Storage]
 path = /media/sdb1/Storage
 read only = No
 create mask = 0777
 directory mask = 0777
 guest ok = Yes

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
David Mawdsley (dm-madmod) said :
#1

For what it's worth, I read the following:

Here are the ports used by samba:

netbios-ns 137/tcp # NETBIOS Name Service
netbios-ns 137/udp
netbios-dgm 138/tcp # NETBIOS Datagram Service
netbios-dgm 138/udp
netbios-ssn 139/tcp # NETBIOS session service
netbios-ssn 139/udp

You may need to reconfigure iptables a bit. Sorry, I can't help you with that, though here are two input rules that may be useful:
$IPT -A INPUT -p tcp -m multiport --destination-ports 135,139,445 -j ACCEPT # samba
$IPT -A INPUT -p udp -m multiport --destination-ports 135,137,138,139,445 -j ACCEPT # samba

Note: IPT=/sbin/iptables

Can you help with this problem?

Provide an answer of your own, or ask jbowen7 for more information if necessary.

To post a message you must log in.