Страница 1 из 1

WINS

Добавлено: 2007-04-27 7:32:29
alex3
Кто-нить поднимал сабж? и где посмотреть базу сабжа?
ставлю в smb.conf

Код: Выделить всё

wins support = yes
ругается если обращаешься к винсу

Добавлено: 2007-04-27 7:35:15
Alex Keda
как ругается?

Добавлено: 2007-04-27 7:57:20
alex3
/var/log/samba/log.nmbd

Код: Выделить всё

[2007/04/27 07:06:44, 0] nmbd/nmbd_incomingrequests.c:process_name_refresh_request(172)
  process_name_refresh_request: unicast name registration request received for name SBYT3<20> from IP 10.0.0.77 on subnet U
NICAST_SUBNET.
[2007/04/27 07:06:44, 0] nmbd/nmbd_incomingrequests.c:process_name_refresh_request(173)
  Error - should be sent to WINS server

Добавлено: 2007-04-27 9:19:50
abanamat
позавчера поднимал. сетка - 13 писюков, никакой авторизации, весь шаринг гостями.

Код: Выделить всё

#======================= Global Settings
[global]

   workgroup = FIRMA
   netbios name = firma-server
   server string = firma-server
   smb ports = 139
   security = share

   hosts allow = 192.168.0. 192.168.10. 127.

   load printers = no
   disable spoolss = Yes
;   printcap name = /etc/printcap
   printing = bsd
   use client driver = Yes

   guest account = nobody

   log file = /var/log/samba/log.%m
   max log size = 50

   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = no
   encrypt passwords = yes

   socket options = SO_RCVBUF=8192 SO_SNDBUF=8192

   interfaces = 192.168.0.3/24
   bind interfaces only = Yes


   local master = yes
   os level = 90
   domain master = yes
   preferred master = yes
;   domain logons = yes
   wins support = yes
   name resolve order = lmhosts host bcast
   dns proxy = no
   time server = Yes

   display charset = cp866
   unix charset = cp1251
   dos charset = cp866
   preserve case = yes

#============================ Share Definitions

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

[tmp]
  comment = Temporary file space
  browseable = no
  path = /tmp
  read only = no
  public = yes

[home]
  comment = PC home Dir
  path = /home/pc/%m
  public = no
  guest ok = yes
  guest only = yes
  writable = yes
  printable = no

[e]
  comment = e
  path = /xchange/e
  public = no
  guest ok = yes
  guest only = yes
  writable = yes
  printable = no
  create mask = 0765
  hosts allow = 127. 192.168.0.1 192.168.0.9 192.168.0.10

[docs]
  comment = docs
  path = /xchange/docs
  public = yes
  browseable = yes
  guest ok = yes
  guest only = yes
  writable = yes
  printable = no

[music]
  comment = music
  path = /xchange/music
  public = yes
  browseable = yes
  guest ok = yes
  guest only = yes
  writable = yes
  printable = no

[distr]
  comment = distr
  path = /xchange/distr
  public = yes
  browseable = yes
  guest ok = yes
  guest only = yes
  writable = yes
  printable = no
фря локализована на cp1251

Добавлено: 2007-04-27 9:34:48
alex3
добавил

Код: Выделить всё

name resolve order = lmhosts host bcast
ждемс

Добавлено: 2007-04-27 10:06:31
abanamat
у меня, кстате, все машины еще и в hosts прописаны.

Re: WINS

Добавлено: 2007-04-27 10:35:02
dikens3
alex3 писал(а):Кто-нить поднимал сабж? и где посмотреть базу сабжа?
ставлю в smb.conf

Код: Выделить всё

wins support = yes
ругается если обращаешься к винсу

Код: Выделить всё

# testparm -v | grep "lock directory"
Load smb config files from /usr/local/etc/smb.conf
..
..
        lock directory = /var/lock

server# cat /var/lock/wins.dat
VERSION 1 0
"SERVER#03" 1177917849 192.168.x.x 46R
..
..
OS level побольше поставь.

Код: Выделить всё

log.nmbd

[2007/04/27 01:00:03, 0] nmbd/nmbd.c:main(699)
  Netbios nameserver version 3.0.23d started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/04/27 01:00:03, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(335)
  become_domain_master_browser_wins:
  Attempting to become domain master browser on workgroup IAS, subnet UNICAST_SUBNET.
[2007/04/27 01:00:03, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(349)
  become_domain_master_browser_wins: querying WINS server from IP 192.168.2.2 for domain master browser name IAS<1b> on workgroup IAS
[2007/04/27 01:00:03, 0] nmbd/nmbd_become_dmb.c:become_domain_master_stage2(113)
  *****

  Samba server SERVER is now a domain master browser for workgroup IAS on subnet UNICAST_SUBNET

  *****
[2007/04/27 01:00:03, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(290)
  become_domain_master_browser_bcast:
  Attempting to become domain master browser on workgroup IAS on subnet 192.168.x.x
[2007/04/27 01:00:03, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(303)
  become_domain_master_browser_bcast: querying subnet 192.168.x.x for domain master browser on workgroup IAS
[2007/04/27 01:00:11, 0] nmbd/nmbd_become_dmb.c:become_domain_master_stage2(113)
  *****

  Samba server SERVER is now a domain master browser for workgroup IAS on subnet 192.168.2.2

  *****
[2007/04/27 01:00:26, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****

  Samba name server SERVER is now a local master browser for workgroup IAS on subnet 192.168.x.x