Кажется следал все возможное - но не работает, видно что-то упустил, подскажите кто знает....
1. testparm - видит smb.conf нормально.
2. учетные записи в smbpassd есть и пароли для них установлены,
3. Эти имена и пароли в точности совпадают с именаи/паролями Win2000
4. Нормально запустился и работает SWAT.
5. Запушен nmbd и отвечает серверу Windows (FreeBSD видна в сетевом окружении Windows)
6. При запросе запускается smbd (что видно по ps x)
7. По Mount_smbfs нормально монтируются диски Windows
8. Отключил в smb.conf любые ограничения и защиты, которые только нашел
9. Версия САмбы 2.2.2 , FreeBSD 4.4
----------------------------------------
И в итоге:
1. При обращении к FreeBSD из Win2000 хоть из сетевого окружения хоть командой
Net View - сообщение - связь не может быть установлена с этого узла
2. Еще больше ограничиваю задачу - пытаюсь просмотреть ресурсы Самбы командой sbbclient -L <ip> -U <имя_любого_юзера>
------------------------
FreeBSD# smbclient -L 192.168.0.4 -U _admin_
INFO: Debug class all level = 100 (pid 3177 from pid 3177)
doing parameter log file = /var/log/log.%m
doing parameter max log size = 50
doing parameter dns proxy = No
doing parameter hosts allow = 192.168.0.
pm_process() returned Yes
lp_servicenumber: couldn't find homes
added interface ip=192.168.0.4 bcast=192.168.0.255 nmask=255.255.255.0
Password:
session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
FreeBSD#
--------------------------------------------
Смотрю журналы (предварительные ласки из трех транзакций опускаю - только итог):
[2003/01/06 05:35:39, 10] lib/util.c:dump_data(1435) [000] 6C 65 6E 6D 61 78 00 5F 41 44 4D 49 4E 5F 00 42 lenmax._ ADMIN_.B
[2003/01/06 05:35:39, 10] lib/util.c:dump_data(1443) [010] 41 5A 41 00 55 6E 69 78 00 53 61 6D 62 61 00 AZA.Unix .Samba.
[2003/01/06 05:35:39, 3] smbd/process.c:switch_message(667) switch message SMBsesssetupX (pid 3178)
[2003/01/06 05:35:39, 3] smbd/sec_ctx.c:set_sec_ctx(321) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2003/01/06 05:35:39, 5] smbd/uid.c:unbecome_user(216) unbecome_user now uid=(0,0) gid=(0,0)
[2003/01/06 05:35:39, 3] smbd/reply.c:reply_sesssetup_and_X(856) Domain=[BAZA] NativeOS=[Unix] NativeLanMan=[Samba]
[2003/01/06 05:35:39, 3] smbd/reply.c:reply_sesssetup_and_X(866) sesssetupX:name=[_ADMIN_]
[2003/01/06 05:35:39, 0] lib/debug.c:reopen_logs(337) Unable to open new log file /var/log/log.freebsd: No such file or directory
[2003/01/06 05:35:39, 6] param/loadparm.c:lp_file_list_changed(2208) lp_file_list_changed()
file /usr/local/etc/smb.conf -> /usr/local/etc/smb.conf last mod_time: Thu Jan 1 03:00:00 1970
[2003/01/06 05:35:39, 2] smbd/reply.c:reply_sesssetup_and_X(980) Defaulting to Lanman password for _admin_
[2003/01/06 05:35:39, 4] passdb/pass_check.c:pass_check(721) pass_check: Checking (PAM) password for user _admin_ (l=6)
[2003/01/06 05:35:39, 4] passdb/pampass.c:smb_pam_start(458) smb_pam_start: PAM: Init user: _admin_
[2003/01/06 05:35:39, 0] passdb/pampass.c:smb_pam_error_handler(73) smb_pam_error_handler: PAM: Init Failed : Critical error - immediate abort
[2003/01/06 05:35:39, 1] smbd/reply.c:reply_sesssetup_and_X(995) Rejecting user '_admin_': authentication failed
-------------------------------------------
И теперь мой SMB.CONF (хотя их уже было сто вариантов, и он просто не причем - не проходит аутентификация)
[global]
client code page = 866
workgroup = BAZA
netbios name = FREEBSD
server string = Привет
security = SHARE
allow trusted domains = No
null passwords = Yes
root directory = /root
passwd chat = lenmax
passwd chat debug = Yes
unix password sync = Yes
log level = 100
log file = /var/log/log.%m
max log size = 50
dns proxy = No
hosts allow = 192.168.0.
[homes]
comment = Home Directories
path = /root
guest ok = Yes
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[root]
comment = root RootDir
path = /tmp
read only = No
guest ok = Yes
[_admin_]
comment = _admin_ RootDir
path = /tmp
read only = No
guest ok = Yes
Уже отправляя это сообщение наткнулся в журнале smbd на удивительную вещь
-----------------------------------------
[2003/01/05 23:52:16, 1] smbd/server.c:main(689) smbd version 2.2.2 started.
Copyright Andrew Tridgell 1992-1998 [2003/01/05 23:52:16, 2] smbd/server.c:main(693)
uid=0 gid=0 euid=0 egid=0
[2003/01/05 23:52:16, 3] param/loadparm.c:init_globals(1211) Initialising global parameters
[2003/01/05 23:52:16, 3] param/params.c:pm_process(579) params.c:pm_process() - Processing configuration file "/usr/local/etc/smb.conf"
[2003/01/05 23:52:16, 3] param/loadparm.c:do_section(2889) Processing section "[global]" doing parameter client code page = 866
[2003/01/05 23:52:16, 6] lib/charset.c:codepage_initialise(339) codepage_initialise: client code page = 866
[2003/01/05 23:52:16, 5] lib/charset.c:load_client_codepage(196) load_client_codepage: loading codepage 866.
Adding chars 0x61 0x41 (l->u = True) (u->l = True)
Adding chars 0x62 0x42 (l->u = True) (u->l = True)
...
[2003/01/05 23:52:16, 5] lib/util_unistr.c:load_unicode_map(532) load_unicode_map: loading unicode map for codepage 866.
doing parameter workgroup = BAZA
doing parameter netbios name = FREEBSD
[2003/01/05 23:52:16, 4] param/loadparm.c:handle_netbios_name(2258) handle_netbios_name: set global_myname to: FREEBSD
doing parameter server string = Привет
doing parameter security = SHARE
doing parameter allow trusted domains = No
doing parameter null passwords = Yes
doing parameter root directory = /root
doing parameter passwd chat = lenmax
doing parameter passwd chat debug = Yes
doing parameter unix password sync = Yes
doing parameter log level = 100
[2003/01/05 23:52:16, 1] lib/debug.c:debug_message(247)
INFO: Debug class all level = 100 (pid 121 from pid 121)
doing parameter log file = /var/log/log.%m
doing parameter max log size = 50
doing parameter dns proxy = No
doing parameter hosts allow = 192.168.0.
[2003/01/05 23:52:16, 2] param/loadparm.c:do_section(2907)
Processing section "[homes]"
doing parameter comment = Home Directories
doing parameter path = /root
doing parameter guest ok = Yes
...
doing parameter guest ok = Yes
[2003/01/05 23:52:16, 4] param/loadparm.c:lp_load(3348) pm_process() returned Yes
[2003/01/05 23:52:16, 3] param/loadparm.c:lp_add_ipc(1937) adding IPC service IPC$
[2003/01/05 23:52:16, 3] param/loadparm.c:lp_add_ipc(1937) adding IPC service ADMIN$
[2003/01/05 23:52:16, 6] param/loadparm.c:lp_file_list_changed(2208) lp_file_list_changed()
file /usr/local/etc/smb.conf -> /usr/local/etc/smb.conf last mod_time: Sat Jan 4 13:55:05 2003
[2003/01/05 23:52:16, 2] lib/interface.c:add_interface(85) added interface ip=192.168.0.4 bcast=192.168.0.255 nmask=255.255.255.0
[2003/01/05 23:52:16, 5] lib/hash.c:hash_table_init(70) Hash size = 521.
[2003/01/05 23:52:16, 1] smbd/files.c:file_init(152) file_init: Information only: requested 10000 open files, 1782 are available.
[2003/01/05 23:52:16, 6] lib/charset.c:codepage_initialise(335) codepage_initialise: called twice - ignoring second client code page = 866
[2003/01/05 23:52:16, 3] smbd/server.c:main(731) loaded services
[2003/01/05 23:52:16, 3] smbd/server.c:main(739) Becoming a daemon.
[2003/01/05 23:52:16, 8] lib/util.c:fcntl_lock(1267) fcntl_lock 6 8 0 1 3
[2003/01/05 23:52:16, 8] lib/util.c:fcntl_lock(1307) fcntl_lock: Lock call successful
[2003/01/05 23:52:16, 5] smbd/connection.c:claim_connection(157) claiming 100000
[2003/01/05 23:52:16, 3] lib/util_sock.c:open_socket_in(842) bind succeeded on port 139
[2003/01/05 23:52:16, 5] lib/util_sock.c:print_socket_options(114) socket option SO_KEEPALIVE = 8
...
[2003/01/05 23:52:16, 2] smbd/server.c:open_sockets(201) waiting for a connection
хотя что это за сеанс и кто его запустил я так не понял (может переодические перевыборы MasterBrowser ?_
------------------------
Ау...Помоните кто может...