0 / 0 / 0
Регистрация: 08.05.2013
Сообщений: 42
1

Пропал Samba сервер из сетевого окружения

27.02.2015, 10:44. Показов 2995. Ответов 3
Метки нет (Все метки)

Author24 — интернет-сервис помощи студентам
В офисе месяца три проработал сервер на FreeBSD 10, на котором в том числе крутилась и SAMBA. Вчера под ночь SAMBA перестала видиться в сети. По IP в нее заходили. Сегодня весь день ковыряли ее, в итоге уже полностью переустановили, поставили SAMBA 4.1, но проблема в итоге осталась той же, вдобавок стало вылазить приглашение ввести пароль при попытке открыть ее по IP. Помогите люди добрые запустить ее опять.
Конфиг
Кликните здесь для просмотра всего текста
# testparm
Load smb config files from /usr/local/etc/smb4.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[Work-1]"
lp_bool(Ye): value is not boolean!
Processing section "[Work-2]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
dos charset = 866
unix charset = koi8-r
workgroup = CORD
netbios name = CORD1
server string = FreeBSD server
interfaces = re1
log file = /var/log/samba/log.%m
max log size = 50
read raw = No
write raw = No
os level = 1
dns proxy = No
wins support = Yes
default service = global
winbind use default domain = Yes
winbind trusted domains only = Yes
idmap config * : backend = tdb
read only = No
guest ok = Yes
[homes]
comment = Home Directories
path = /home
create mask = 0777
directory mask = 0777
browseable = No

[Work-1]
path = /home/Work-1
create mask = 0777
directory mask = 0777
guest ok = No

log.smbd

Кликните здесь для просмотра всего текста
[2015/02/27 16:55:01.647261, 3]
Processing section "[global]"
doing parameter interfaces = re1
doing parameter server string = FreeBSD server
doing parameter winbind trusted domains only = yes
doing parameter unix charset = koi8-r
doing parameter winbind use default domain = yes
doing parameter workgroup = CORD
doing parameter writeable = yes
doing parameter default = global
doing parameter dns proxy = No
doing parameter write raw = no
doing parameter os level = 1
doing parameter max log size = 50
doing parameter netbios name = CORD1
doing parameter read raw = no
doing parameter public = yes
doing parameter debug level = 4
doing parameter log file = /var/log/samba/log.%m
doing parameter wins support = true
doing parameter security = user
doing parameter guest ok = yes
doing parameter dos charset = 866

Processing section "[homes]"
doing parameter directory mode = 777
doing parameter path = /home
doing parameter writable = yes
doing parameter create mode = 777
doing parameter comment = Home Directories
doing parameter browseable = no
[2015/02/27 16:55:01.649457, 2] ../source3/param/loadparm.c:3582(do_section)
Processing section "[printers]"
doing parameter comment = All Printers
doing parameter path = /var/spool/samba
doing parameter printable = Yes
doing parameter browseable = No
[2015/02/27 16:55:01.649845, 2] ../source3/param/loadparm.c:3582(do_section)
Processing section "[Work-1]"
doing parameter directory mode = 777
doing parameter create mode = 777
doing parameter guest ok = Ye
[2015/02/27 16:55:01.650094, 0] ../source3/param/loadparm.c:1325(lp_bool)
lp_bool(Ye): value is not boolean!
doing parameter path = /home/Work-1
doing parameter writable = yes
[2015/02/27 16:55:01.650478, 2] ../source3/param/loadparm.c:3582(do_section)
Processing section "[Work-2]"
doing parameter path = /home/Work-2
doing parameter create mode = 777
doing parameter directory mode = 777
[2015/02/27 16:55:01.650740, 4] ../source3/param/loadparm.c:4878(lp_load_ex)
pm_process() returned Yes
[2015/02/27 16:55:01.650884, 3] ../source3/param/loadparm.c:1774(lp_add_ipc)


[2015/02/27 16:55:01.775722, 4] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2015/02/27 16:55:01.775758, 4] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2015/02/27 16:55:01.775782, 4] ../source3/smbd/sec_ctx.c:216(push_sec_ctx)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2015/02/27 16:55:01.775805, 4] ../source3/smbd/uid.c:485(push_conn_ctx)
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2015/02/27 16:55:01.775838, 4] ../source3/smbd/sec_ctx.c:316(set_sec_ctx)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2015/02/27 16:55:01.775871, 4] ../source3/smbd/sec_ctx.c:216(push_sec_ctx)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2015/02/27 16:55:01.775897, 4] ../source3/smbd/uid.c:485(push_conn_ctx)
push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2015/02/27 16:55:01.775919, 4] ../source3/smbd/sec_ctx.c:316(set_sec_ctx)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2015/02/27 16:55:01.776039, 4] ../source3/passdb/pdb_tdb.c:552(tdbsam_open)
tdbsam_open: successfully opened /var/db/samba4/private/passdb.tdb
[2015/02/27 16:55:01.776097, 4] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2015/02/27 16:55:01.776128, 4] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2015/02/27 16:55:01.776152, 4] ../source3/smbd/sec_ctx.c:216(push_sec_ctx)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2015/02/27 16:55:01.776188, 4] ../source3/smbd/uid.c:485(push_conn_ctx)
[2015/02/27 16:55:01.776211, 4] ../source3/smbd/sec_ctx.c:316(set_sec_ctx)
[2015/02/27 16:55:01.777125, 4] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2015/02/27 16:55:01.776243, 4] ../source3/smbd/sec_ctx.c:216(push_sec_ctx)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2015/02/27 16:55:01.776267, 4] ../source3/smbd/uid.c:485(push_conn_ctx)
push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2015/02/27 16:55:01.776289, 4] ../source3/smbd/sec_ctx.c:316(set_sec_ctx)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2015/02/27 16:55:01.776354, 4] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2015/02/27 16:55:01.776384, 4] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2015/02/27 16:55:01.776408, 4] ../source3/smbd/sec_ctx.c:216(push_sec_ctx)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2015/02/27 16:55:01.776430, 4] ../source3/smbd/uid.c:485(push_conn_ctx)
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2015/02/27 16:55:01.776466, 4] ../source3/smbd/sec_ctx.c:316(set_sec_ctx)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2015/02/27 16:55:01.776517, 4] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2015/02/27 16:55:01.776542, 4] ../source3/smbd/sec_ctx.c:216(push_sec_ctx)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2015/02/27 16:55:01.776564, 4] ../source3/smbd/uid.c:485(push_conn_ctx)

[2015/02/27 16:55:01.776817, 4] ../source3/smbd/sec_ctx.c:316(set_sec_ctx)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2015/02/27 16:55:01.776863, 4] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2015/02/27 16:55:01.776888, 4] ../source3/smbd/sec_ctx.c:216(push_sec_ctx)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2015/02/27 16:55:01.776912, 4] ../source3/smbd/uid.c:485(push_conn_ctx)
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2015/02/27 16:55:01.776934, 4] ../source3/smbd/sec_ctx.c:316(set_sec_ctx)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2015/02/27 16:55:01.776996, 4] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2015/02/27 16:55:01.777022, 4] ../source3/smbd/sec_ctx.c:216(push_sec_ctx)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2015/02/27 16:55:01.777045, 4] ../source3/smbd/uid.c:485(push_conn_ctx)
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2015/02/27 16:55:01.777066, 4] ../source3/smbd/sec_ctx.c:316(set_sec_ctx)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2015/02/27 16:55:01.777194, 1] ../source3/smbd/files.c:218(file_init_global)
file_init_global: Information only: requested 114948 open files, 59392 are available.
[2015/02/27 16:55:01.777595, 3] ../source3/rpc_server/svcctl/srv_svcctl_reg.c:565(svcctl_init_winreg)
Initialise the svcctl registry keys if needed.
[2015/02/27 16:55:01.777629, 4] ../source3/smbd/sec_ctx.c:216(push_sec_ctx)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2015/02/27 16:55:01.777668, 4] ../source3/smbd/uid.c:485(push_conn_ctx)
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2015/02/27 16:55:01.777690, 4] ../source3/smbd/sec_ctx.c:316(set_sec_ctx)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2015/02/27 16:55:01.777780, 4] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2015/02/27 16:55:01.777921, 4] ../source3/rpc_server/rpc_ncacn_np.c:60(make_internal_rpc_pipe_p)
Create pipe requested \winreg
[2015/02/27 16:55:01.778240, 4] ../source3/rpc_server/rpc_ncacn_np.c:100(make_internal_rpc_pipe_p)
Created internal pipe \winreg
[2015/02/27 16:55:01.780960, 3] ../source3/rpc_server/eventlog/srv_eventlog_reg.c:59(eventlog_init_winreg)
Initialise the eventlog registry keys if needed.



log.nmbd

Кликните здесь для просмотра всего текста
[2015/02/27 17:16:22.281772, 4]
dump workgroup on subnet 192.168.100.200: netmask= 255.255.255.0:
CORD(1) current master browser = CORD1
CORD1 40849a03 (FreeBSD server)
[2015/02/27 17:16:22.285084, 4] ../source3/nmbd/nmbd_workgroupdb.c:165(find_workgroup_on_subnet)
find_workgroup_on_subnet: workgroup search for CORD on subnet 192.168.100.200: found.
[2015/02/27 17:16:22.285682, 4] ../source3/nmbd/nmbd_workgroupdb.c:165(find_workgroup_on_subnet)
find_workgroup_on_subnet: workgroup search for CORD on subnet 192.168.100.200: found.
[2015/02/27 17:16:22.288355, 3] ../source3/nmbd/nmbd_serverlistdb.c:401(write_browse_list)
write_browse_list: Wrote browse list into file /var/db/samba4/browse.dat
[2015/02/27 17:16:32.289717, 4] ../source3/nmbd/nmbd_workgroupdb.c:165(find_workgroup_on_subnet)
find_workgroup_on_subnet: workgroup search for CORD on subnet 192.168.100.200: found.
[2015/02/27 17:16:32.290635, 4] ../source3/nmbd/nmbd_workgroupdb.c:276(dump_workgroups)
dump_workgroups()
dump workgroup on subnet 192.168.100.200: netmask= 255.255.255.0:
CORD(1) current master browser = CORD1
add_response_record: adding response record id:13786 to subnet 192.168.100.200. num_records:1
[2015/02/27 17:15:53.929098, 4] ../source3/nmbd/nmbd_workgroupdb.c:165(find_workgroup_on_subnet)
find_workgroup_on_subnet: workgroup search for CORD on subnet 192.168.100.200: found.
[2015/02/27 17:15:53.929308, 4] ../source3/nmbd/nmbd_workgroupdb.c:165(find_workgroup_on_subnet)
find_workgroup_on_subnet: workgroup search for CORD on subnet 192.168.100.200: found.
[2015/02/27 17:15:53.929434, 4] ../source3/nmbd/nmbd_workgroupdb.c:276(dump_workgroups)
dump_workgroups()
dump workgroup on subnet 192.168.100.200: netmask= 255.255.255.0:
CORD(1) current master browser = UNKNOWN
CORD1 40819a03 (FreeBSD server)

[2015/02/27 17:16:02.218176, 4] ../source3/nmbd/nmbd_workgroupdb.c:165(find_workgroup_on_subnet)
find_workgroup_on_subnet: workgroup search for CORD on subnet 192.168.100.200: found.
[2015/02/27 17:16:02.218572, 3] ../source3/nmbd/nmbd_become_lmb.c:354(become_local_master_stage2)
become_local_master_stage2: registered as master browser for workgroup CORD on subnet 192.168.100.200
[2015/02/27 17:16:02.219175, 3] ../source3/nmbd/nmbd_sendannounce.c:70(broadcast_announce_request)
broadcast_announce_request: sending announce request for workgroup CORD to subnet 192.168.100.200
[2015/02/27 17:16:02.219924, 4] ../source3/nmbd/nmbd_packets.c:2129(send_mailslot)
send_mailslot: Sending to mailslot \MAILSLOT\BROWSE from CORD1<00> IP 192.168.100.200 to CORD<1e> IP 192.168.100.255
[2015/02/27 17:16:02.220609, 4] ../source3/nmbd/nmbd_packets.c:116(debug_browse_data)
debug_browse_data():
0 char ...CORD1 hex 02 01 00 43 4f 52 44 31
[2015/02/27 17:16:02.221409, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name CORD<1d> with first IP 192.168.100.200 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2015/02/27 17:16:02.221848, 0] ../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
*****

Samba name server CORD1 is now a local master browser for workgroup CORD on subnet 192.168.100.200

*****

CORD(1) current master browser = CORD1
CORD1 40849a03 (FreeBSD server)
[2015/02/27 17:17:22.446711, 4] ../source3/nmbd/nmbd_workgroupdb.c:165(find_workgroup_on_subnet)
find_workgroup_on_subnet: workgroup search for CORD on subnet 192.168.100.200: found.
[2015/02/27 17:17:22.447946, 4] ../source3/nmbd/nmbd_workgroupdb.c:276(dump_workgroups)
dump_workgroups()
dump workgroup on subnet 192.168.100.200: netmask= 255.255.255.0:
CORD(1) current master browser = CORD1
CORD1 40849a03 (FreeBSD server)
[2015/02/27 17:17:32.458780, 4] ../source3/nmbd/nmbd_workgroupdb.c:165(find_workgroup_on_subnet)
find_workgroup_on_subnet: workgroup search for CORD on subnet 192.168.100.200: found.
[2015/02/27 17:17:32.460141, 4] ../source3/nmbd/nmbd_workgroupdb.c:276(dump_workgroups)
dump_workgroups()

dump workgroup on subnet 192.168.100.200: netmask= 255.255.255.0:
CORD(1) current master browser = CORD1
CORD1 40849a03 (FreeBSD server)
[2015/02/27 17:17:52.559147, 4] ../source3/nmbd/nmbd_workgroupdb.c:165(find_workgroup_on_subnet)
find_workgroup_on_subnet: workgroup search for CORD on subnet 192.168.100.200: found.
[2015/02/27 17:17:52.560070, 4] ../source3/nmbd/nmbd_workgroupdb.c:276(dump_workgroups)
dump_workgroups()
dump workgroup on subnet 192.168.100.200: netmask= 255.255.255.0:
CORD(1) current master browser = CORD1
CORD1 40849a03 (FreeBSD server)
[2015/02/27 17:18:02.609765, 4] ../source3/nmbd/nmbd_workgroupdb.c:165(find_workgroup_on_subnet)


Добавлено через 12 минут
Доступ нужен самый простой. Прозрачный для пользователей, без всяких вводов паролей
0
Programming
Эксперт
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
27.02.2015, 10:44
Ответы с готовыми решениями:

Пропал компьютер из сетевого окружения
Пропал компьютер из рабочей группы. На компьютере расшарен общий принтер. Интернет работает. 1С с...

Скрытая закачка папки из сетевого окружения на сервер по FTP
Всем привет! Нужен .bat/.cmd файл или что-то подобное для закачки файлов на сервер по ftp. Папка...

Создание сетевого окружения
Добрый день! Есть в наличии: - Trendnet TEG-2248WS; - Cisco Catalist 2960; - Интернет 8 Мб;...

Настройка Сетевого окружения W7 и XP
Сеть на предприятии локальная с выходом в интернет. На XP подключен сетевой диск сервака(на...

3
0 / 0 / 0
Регистрация: 08.05.2013
Сообщений: 42
27.02.2015, 12:50  [ТС] 2
Пока пришли к такой конфигурации, при которой не требует пароль. Но по имени также не отображается, что очень необходимо.
Кликните здесь для просмотра всего текста
[global]
default = global
write raw = no
dns proxy = No
encrypt passwords = yes
writeable = yes
preferred master = yes
unix charset = koi8-r
workgroup = CORD
netbios aliases = CORD2
usershare owner only = False
interfaces = re1
server string = FreeBSD server
log file = /var/log/samba/log.%m
debug level = 4
dos charset = 866
security = share
load printers = no
public = yes
null passwords = yes
max log size = 50
os level = 1
netbios name = CORD1
guest ok = yes
read raw = no



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


[Work-1]
guest only = yes
path = /home/Work-1

directory mode = 777
create mode = 777
force user = cord

[Work-2]
path = /home/Work-2
directory mode = 777
create mode = 777
force user = cord


Добавлено через 47 минут
Мда.. Рано радовался. На других компах не работает даже по айпи. На одном просто не пускает, на другом логин и пароль требует. Беда...
0
0 / 0 / 0
Регистрация: 08.05.2013
Сообщений: 42
03.03.2015, 02:51  [ТС] 3
Более-менее поставил заплатку, включив WINS. В сетевом окружении все также не видно.
0
18 / 18 / 6
Регистрация: 09.01.2013
Сообщений: 409
27.03.2016, 14:00 4
Дело в том что директивы security = share и security = server считаются устаревшими и не применяются более в Samba 4.
Поэтому используется оставшаяся директива security = user.

поэтому в секцию глобал теперь пишем так:
[global]
workgroup = LOCALNET
netbios name = SRACH
server string = Samba Server
#security = share
security = user
map to guest = Bad User

guest account = nobody
0
27.03.2016, 14:00
IT_Exp
Эксперт
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
27.03.2016, 14:00
Помогаю со студенческими работами здесь

Неполадка сетевого окружения
Проблема в следующем Есть локальная сеть. В сети 15 компьютеров. Все находятся в одной рабочей...

Закрыть окно сетевого окружения...
Закрыть окно сетевого окружения...

Не открывается свойства сетевого окружения.
У меня возникла проблема. Не открывается свойства сетевого окружения. Не открывается мастер...

Не работает просмотр сетевого окружения
Только что установил Linux Mint 19.1 и обнаружил, что при попытке кликнуть на &quot;просмотреть сеть&quot; в...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
4
Ответ Создать тему
Опции темы

КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2024, CyberForum.ru