LinuxForum.Fans
Тема

samba не вижу удаленного Linux server-а

Автор: Alex181 7 сообщений 6713 просмотров
#15183

Доброго дня!
Разбираюсь в samba, хочу увидеть на Windows папку Linux server-а.
Что сделал на Linux

text
smbclient -L 192.168.0.22 -U%
Domain=[ALGROUP] OS=[Unix] Server=[Samba 3.5.1]

Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (Samba 3.5.1) data Disk Domain=[ALGROUP] OS=[Unix] Server=[Samba 3.5.1]

Server Comment --------- ------- INET Samba 3.5.1

Workgroup Master --------- ------- ALGROUP INET

text
cat etc/samba/smb.conf
[global]
        workgroup = ALGROUP
        printing = cups
        printcap name = cups 
        load printers = yes
        netbios name = inet

[data] path = /home/tom read only = no map archive = no

запустил

text
/usr/sbin/smbd -D
/usr/sbin/nmbd -D

с windows пинг Linux server-а есть, рабочая группа на windows совпадает с smb.conf но не вижу расшареной папки на linux.
Подскажите где что еще проверить и посмотреть, заранее благодарю.

#15358
Alex181 написал:

Разбираюсь в samba, хочу увидеть на Windows папку Linux server-а.

Я бы добаил в [global] следующее:

text

# Уровень определения прав доступа на уровне пользователей
security = user

# Приоритет данного сервера среди других компьютеров рабочей группы: # определяет, кто именно будет главной машиной, отвечающей за # отображение ресурсов сети. Для сравнения, у Win9X os level = 34, а # у NT4 os level = 64. os level = 65

# Очевидно, что раз нет домена - нет и мастера. domain master = no

# Не стоит становиться сервером паролей для окрестных машин. domain logons = no

# Обычно в простейшей сети WINS не нужен, но не помешает wins support = yes

И в секцию [data] добавил бы ключики browseable=yes и writable = yes

Источник знаний тут: http://www.samba.org.ua/articles/?section=2&articleid=108
Подобных статей гуглится масса.

#15711

Не помогло,

text
smbclient -L 192.168.0.22 -U%
Domain=[ALGROUP] OS=[Unix] Server=[Samba 3.5.1]

Sharename Type Comment --------- ---- ------- sharename Disk IPC$ IPC IPC Service (Samba 3.5.1) Domain=[ALGROUP] OS=[Unix] Server=[Samba 3.5.1]

Server Comment --------- ------- INET Samba 3.5.1

Workgroup Master --------- ------- ALGROUP INET

еще запускаю демоны
/usr/sbin/smbd -D
/usr/sbin/nmbd -D
но почему 2 процесса висит

text
ps -ae | grep nmbd
12342 ?        00:00:00 nmbd
12343 ?        00:00:00 nmbd
[root@inet /]# ps -ae | grep smbd 
12339 ?        00:00:00 smbd
12341 ?        00:00:00 smbd
#15741

Логи покажите

#15764
text
 cat var/log/samba/log.smbd
[2010/03/16 12:13:17,  0] smbd/server.c:1085(main)
  smbd version 3.5.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2010
[2010/03/16 12:29:59.640212,  0] lib/util_sock.c:1432(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
[2010/03/16 12:29:59.649999,  0] lib/util_sock.c:474(read_fd_with_timeout)
[2010/03/16 12:29:59.650068,  0] lib/util_sock.c:1432(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  read_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
[2010/03/16 14:38:31,  0] smbd/server.c:1085(main)
  smbd version 3.5.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2010
[2010/03/16 14:38:31.986673,  0] smbd/server.c:466(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
[2010/03/16 14:38:31.986959,  0] smbd/server.c:466(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
[2010/03/17 09:52:14,  0] smbd/server.c:1085(main)
  smbd version 3.5.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2010
[2010/03/17 09:52:14.906850,  0] smbd/server.c:466(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
[2010/03/17 09:52:14.907225,  0] smbd/server.c:466(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
[2010/03/17 09:58:03,  0] smbd/server.c:1085(main)
  smbd version 3.5.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2010
[2010/03/17 09:58:03.470510,  0] smbd/server.c:466(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
[2010/03/17 09:58:03.470942,  0] smbd/server.c:466(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
text

  Samba name server INET is now a local master browser for workgroup ALGROUP on subnet 192.168.0.22
  
  *****
[2010/03/17 09:58:26.677453,  0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ALGROUP<1b> for the workgroup ALGROUP.
  Unable to sync browse lists in this workgroup.
[2010/03/17 10:13:44.876471,  0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ALGROUP<1b> for the workgroup ALGROUP.
  Unable to sync browse lists in this workgroup.
[2010/03/17 10:28:51.524376,  0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ALGROUP<1b> for the workgroup ALGROUP.
  Unable to sync browse lists in this workgroup.
[2010/03/17 10:43:53.350306,  0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ALGROUP<1b> for the workgroup ALGROUP.
  Unable to sync browse lists in this workgroup.
[2010/03/17 10:58:50.508468,  0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ALGROUP<1b> for the workgroup ALGROUP.
  Unable to sync browse lists in this workgroup.
[2010/03/17 11:14:08.805092,  0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ALGROUP<1b> for the workgroup ALGROUP.
  Unable to sync browse lists in this workgroup.
[2010/03/17 11:29:08.198520,  0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ALGROUP<1b> for the workgroup ALGROUP.
  Unable to sync browse lists in this workgroup.
[2010/03/17 11:44:17.193486,  0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ALGROUP<1b> for the workgroup ALGROUP.
  Unable to sync browse lists in this workgroup.

вот еще данные

text
cat etc/samba/smb.conf
[global]
        workgroup = ALGROUP
        printing = cups
        printcap name = cups 
        load printers = yes
        netbios name = inet
        domain master = no
        domain logons = no
        wins support = yes  
        security = user

[sharename] path = /home/tom read only = no map archive = no browseable=yes writable = yes public = no writable = yes printable = no create mask = 0765

[root@inet /]# testparm Load smb config files from /etc/samba/smb.conf rlimit_max: rlimit_max (1024) below minimum Windows limit (16384) Processing section "[sharename]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions

[global] workgroup = ALGROUP printcap name = cups domain master = No wins support = Yes

[sharename] path = /home/tom read only = No create mask = 0765 map archive = No

#15863
Alex181 написал:
[2010/03/17 09:58:03, 0] smbd/server.c:1085(main) smbd version 3.5.1 started. Copyright Andrew Tridgell and the Samba Team 1992-2010 [2010/03/17 09:58:03.470510, 0] smbd/server.c:466(smbd_open_one_socket) smbd_open_once_socket: open_socket_in: Address already in use [2010/03/17 09:58:03.470942, 0] smbd/server.c:466(smbd_open_one_socket) smbd_open_once_socket: open_socket_in: Address already in use

У вас дважды что ли самба запускается?

#15889

вот так почему то

text
[root@inet /]# /sbin/service smb start
Starting SMB services: [  OK  ]
Starting NMB services: [  OK  ]
[root@inet /]# 
[root@inet /]# ps -ae | grep smbd
13766 ?        00:00:00 smbd
13772 ?        00:00:00 smbd
[root@inet /]# 
[root@inet /]# ps -ae | grep nmbd
13769 ?        00:00:00 nmbd
13770 ?        00:00:00 nmbd
Войдите или зарегистрируйтесь, чтобы ответить.