DOC
Активный участник
Месяца четыре назад уговорил начальство поставить в конторе сервер на FREEBSD, вместо Windows, аргументируя тем, что все говорят, что очень надежная система. Сам немного не админ, но решил совместить приятное с полезным, самому разобраться в новой системе и полезное для компании сделать. В принципе настроил, до позавчерашней ночи нормально проработал (прокси, фаервол, самба, днс), но внезапно под ночь SAMBA перестала видиться в сети. По IP в нее заходили. Вчера весь день ковыряли ее, в итоге уже полностью переустановили пакет, поставили SAMBA 4.1(была, подозреваю 3.6 - хотя не факт), но проблема в итоге осталась той же, вдобавок стало вылазить приглашение ввести пароль при попытке открыть ее по IP, либо вообще пишет, что пользователь-пароль не совпадает и идите лесом. Помогите люди добрые запустить ее опять. Доступ нужен самый простой, прозрачный для пользователей.
Последний конфиг на котором остановились:
log.smbd (правда сохранился лог только до последнего редактирования, на работала одинаково)
log.nmbd (тоже не самый последний)
И подскажите сразу, на всякий случай - если что, то как правильно переустановить систему, установленную на зеркальный рэйд с ZFS? Только нужно поподробнее описать действия, т.к. с этой системой еще не сильно знаком. Чтобы вернуть чистую систему, но не затронуть раздел с /home (там куча документов лежит)
Последний конфиг на котором остановились:
Код:
[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
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)
И подскажите сразу, на всякий случай - если что, то как правильно переустановить систему, установленную на зеркальный рэйд с ZFS? Только нужно поподробнее описать действия, т.к. с этой системой еще не сильно знаком. Чтобы вернуть чистую систему, но не затронуть раздел с /home (там куча документов лежит)
Последнее редактирование модератором: