Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trying to get Samba share to show up on Windows machine
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kwilliams0
n00b
n00b


Joined: 26 May 2011
Posts: 21

PostPosted: Sun Mar 24, 2013 6:46 am    Post subject: Trying to get Samba share to show up on Windows machine Reply with quote

Hello,

I have set up Samba, in a close to accurate configuration, but I am missing something, as I cannot get it to show up in my windows "netowork" list (which is require to contnect my WD HD Live Media Server).

As background, I can get to the samba shares just fine over IP address, just not via hostname.

The output from testparm -s:

Quote:
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[videos]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = HOMENETWORK
server string = LINUX DESTOP
map to guest = Bad User
username map = /etc/samba/smbusers
log file = /var/log/samba/log.%m
max log size = 50
name resolve order = bcast wins host lmhosts
os level = 65
preferred master = Yes
domain master = Yes
wins support = Yes

[homes]
comment = Home Directories
read only = No

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

[videos]
comment = shows and movies
path = /share/shows
read only = No
guest ok = Yes


when I run: smbclient -L zalman, I see:

Quote:

Domain=[HOMENETWORK] OS=[Unix] Server=[Samba 3.5.15]

Sharename Type Comment
--------- ---- -------
homes Disk Home Directories
videos Disk shows and movies
IPC$ IPC IPC Service (LINUX DESTOP)
HP_LaserJet_2100_Series Printer HP LaserJet 2100 Series
laserjet Printer laserjet
LaserJet-2100 Printer LaserJet-2100
root Disk Home Directories
Domain=[HOMENETWORK] OS=[Unix] Server=[Samba 3.5.15]

Server Comment
--------- -------
ZALMAN LINUX DESTOP

Workgroup Master
--------- -------
HOMENETWORK ZALMAN
WORKGROUP LS-WTGL22D



Given the above, I think it's the naming service that's having problems, however in the log for the nmb daemon (/var/log/samba/log.nmbd) everything looks correct:

Quote:
[2013/03/23 23:27:17.638984, 0] nmbd/nmbd.c:71(terminate)
Got SIGTERM: going down...
[2013/03/23 23:27:17, 0] nmbd/nmbd.c:857(main)
nmbd version 3.5.15 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2013/03/23 23:27:17.663356, 0] nmbd/asyncdns.c:155(start_async_dns)
started asyncdns process 4796
[2013/03/23 23:27:17.667878, 0] nmbd/nmbd_become_dmb.c:337(become_domain_master_browser_wins)
become_domain_master_browser_wins:
Attempting to become domain master browser on workgroup HOMENETWORK, subnet UNICAST_SUBNET.
[2013/03/23 23:27:17.667909, 0] nmbd/nmbd_become_dmb.c:351(become_domain_master_browser_wins)
become_domain_master_browser_wins: querying WINS server from IP 192.168.0.4 for domain master browser name HOMENETWORK<1b> on workgroup HOMENETWORK
[2013/03/23 23:27:23.686981, 0] nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2)
*****

Samba server ZALMAN is now a domain master browser for workgroup HOMENETWORK on subnet UNICAST_SUBNET

*****
[2013/03/23 23:27:23.687025, 0] nmbd/nmbd_become_dmb.c:292(become_domain_master_browser_bcast)
become_domain_master_browser_bcast:
Attempting to become domain master browser on workgroup HOMENETWORK on subnet 192.168.0.4
[2013/03/23 23:27:23.687039, 0] nmbd/nmbd_become_dmb.c:305(become_domain_master_browser_bcast)
become_domain_master_browser_bcast: querying subnet 192.168.0.4 for domain master browser on workgroup HOMENETWORK
[2013/03/23 23:27:31.695530, 0] nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2)
*****

Samba server ZALMAN is now a domain master browser for workgroup HOMENETWORK on subnet 192.168.0.4

*****
[2013/03/23 23:27:39.703515, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
*****

Samba name server ZALMAN is now a local master browser for workgroup HOMENETWORK on subnet 192.168.0.4

*****



Finally, on my windows machine, I can browse and see everything via IP address. If I try to ping "zalman" or "zalman.homenetwork", I get nothing though. Any ideas what could cause this?
Back to top
View user's profile Send private message
Fitzcarraldo
Guru
Guru


Joined: 30 Aug 2008
Posts: 495
Location: United Kingdom

PostPosted: Sun Mar 24, 2013 10:40 am    Post subject: Reply with quote

This guy has an excellent Samba How-To which you might find of help. He's an Ubuntu user, but I have not seen anything as easy to follow. I'm hoping to try it out when I am back at home in a few weeks:

Samba How To.

BTW, his IPTABLES tutorial is also excellent and I'm hoping to adapt it to Gentoo on my main laptop in the near future (I'm currently using UFW).
_________________
Fitzcarraldo's blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum