|
samba-3.0.27a
/etc/samba/smb.conf如下
[global]
netbios name = samba
restrict anonymous = no
domain master = no
preferred master = no
max protocol = NT
acl compatibility = winnt
ldap ssl = No
server signing = Auto
guest ok = yes
security = user
log file = /var/log/samba/log.%m
log level = 10
workgroup = WORKGROUP
dos charset = CP936
unix charset = UTF-8
display charset = LOCALE
[share]
case sensitive = no
strict locking = no
msdfs proxy = no
path = /mnt/d/share
read only = no
[~]$ smbclient -L 192.168.1.66 #我机子ip为192.168.1.66, 输出如下
Password:
Domain=[LOCALHOST] OS=[Unix] Server=[Samba 3.0.27a]
Sharename Type Comment
--------- ---- -------
share Disk
IPC$ IPC IPC Service (Samba 3.0.27a)
Domain=[LOCALHOST] OS=[Unix] Server=[Samba 3.0.27a]
Server Comment
--------- -------
Workgroup Master
--------- -------
WORKGROUP LOCALHOST
然而却链接不上
[~]$ smbclient //192.168.1.66/share -U guest
Password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.27a]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
log 如下
[2007/12/10 03:57:50, 6] param/loadparm.c:lp_file_list_changed(3077)
lp_file_list_changed()
file /etc/samba/smb.conf -> /etc/samba/smb.conf last mod_time: Mon Dec 10 03:45:14 2007
[2007/12/10 03:57:50, 3] smbd/oplock.c:init_oplocks(863)
init_oplocks: initializing messages.
[2007/12/10 03:57:50, 3] smbd/oplock_linux.c:linux_init_kernel_oplocks(276)
Linux kernel oplocks enabled
[2007/12/10 03:57:50, 10] lib/util_sock.c:read_smb_length_return_keepalive(623)
got smb length of 190
[2007/12/10 03:57:50, 6] smbd/process.c:process_smb(1067)
got message type 0x0 of len 0xbe
[2007/12/10 03:57:50, 3] smbd/process.c:process_smb(1068)
Transaction 0 of length 194
[2007/12/10 03:57:50, 5] lib/util.c:show_msg(484)
[2007/12/10 03:57:50, 5] lib/util.c:show_msg(494)
size=190
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=51201
smb_tid=0
smb_pid=16404
smb_uid=0
smb_mid=1
smt_wct=0
smb_bcc=155
[2007/12/10 03:57:50, 10] lib/util.c:dump_data(2264)
[000] 02 50 43 20 4E 45 54 57 4F 52 4B 20 50 52 4F 47 .PC NETW ORK PROG
[010] 52 41 4D 20 31 2E 30 00 02 4D 49 43 52 4F 53 4F RAM 1.0. .MICROSO
[020] 46 54 20 4E 45 54 57 4F 52 4B 53 20 31 2E 30 33 FT NETWO RKS 1.03
[030] 00 02 4D 49 43 52 4F 53 4F 46 54 20 4E 45 54 57 ..MICROS OFT NETW
[040] 4F 52 4B 53 20 33 2E 30 00 02 4C 41 4E 4D 41 4E ORKS 3.0 ..LANMAN
[050] 31 2E 30 00 02 4C 4D 31 2E 32 58 30 30 32 00 02 1.0..LM1 .2X002..
[060] 44 4F 53 20 4C 41 4E 4D 41 4E 32 2E 31 00 02 4C DOS LANM AN2.1..L
[070] 41 4E 4D 41 4E 32 2E 31 00 02 53 61 6D 62 61 00 ANMAN2.1 ..Samba.
[080] 02 4E 54 20 4C 41 4E 4D 41 4E 20 31 2E 30 00 02 .NT LANM AN 1.0..
[090] 4E 54 20 4C 4D 20 30 2E 31 32 00 NT LM 0. 12.
[2007/12/10 03:57:50, 3] smbd/process.c:switch_message(926)
switch message SMBnegprot (pid 16405) conn 0x0
[2007/12/10 03:57:50, 3] smbd/sec_ctx.c:set_sec_ctx(241)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/12/10 03:57:50, 5] auth/auth_util.c:debug_nt_user_token(448)
NT user token: (NULL)
[2007/12/10 03:57:50, 5] auth/auth_util.c:debug_unix_user_token(474)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
[2007/12/10 03:57:50, 5] smbd/uid.c:change_to_root_user(288)
change_to_root_user: now uid=(0,0) gid=(0,0)
[2007/12/10 03:57:50, 3] smbd/negprot.c:reply_negprot(505)
Requested protocol [PC NETWORK PROGRAM 1.0]
[2007/12/10 03:57:50, 3] smbd/negprot.c:reply_negprot(505)
Requested protocol [MICROSOFT NETWORKS 1.03]
[2007/12/10 03:57:50, 3] smbd/negprot.c:reply_negprot(505)
Requested protocol [MICROSOFT NETWORKS 3.0]
[2007/12/10 03:57:50, 3] smbd/negprot.c:reply_negprot(505)
Requested protocol [LANMAN1.0]
[2007/12/10 03:57:50, 3] smbd/negprot.c:reply_negprot(505)
Requested protocol [LM1.2X002]
[2007/12/10 03:57:50, 3] smbd/negprot.c:reply_negprot(505)
Requested protocol [DOS LANMAN2.1]
[2007/12/10 03:57:50, 3] smbd/negprot.c:reply_negprot(505)
Requested protocol [LANMAN2.1]
[2007/12/10 03:57:50, 3] smbd/negprot.c:reply_negprot(505)
Requested protocol [Samba]
[2007/12/10 03:57:50, 10] lib/util.c:set_remote_arch(2239)
set_remote_arch: Client arch is 'Samba'
[2007/12/10 03:57:50, 6] param/loadparm.c:lp_file_list_changed(3077)
lp_file_list_changed()
file /etc/samba/smb.conf -> /etc/samba/smb.conf last mod_time: Mon Dec 10 03:45:14 2007
[2007/12/10 03:57:50, 5] smbd/connection.c:claim_connection(182)
claiming 0
[2007/12/10 03:57:50, 6] param/loadparm.c:lp_file_list_changed(3077)
lp_file_list_changed()
file /etc/samba/smb.conf -> /etc/samba/smb.conf last mod_time: Mon Dec 10 03:45:14 2007
[2007/12/10 03:57:50, 3] smbd/negprot.c:reply_nt1(364)
using SPNEGO
[2007/12/10 03:57:50, 3] smbd/negprot.c:reply_negprot(606)
Selected protocol NT LANMAN 1.0
[2007/12/10 03:57:50, 5] smbd/negprot.c:reply_negprot(612)
negprot index=8
[2007/12/10 03:57:50, 5] lib/util.c:show_msg(484)
[2007/12/10 03:57:50, 5] lib/util.c:show_msg(494)
size=127
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=16404
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]= 8 (0x8)
smb_vwv[ 1]=12807 (0x3207)
smb_vwv[ 2]= 256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]= 65 (0x41)
smb_vwv[ 5]= 0 (0x0)
smb_vwv[ 6]= 256 (0x100)
smb_vwv[ 7]= 5376 (0x1500)
smb_vwv[ 8]= 64 (0x40)
smb_vwv[ 9]=64512 (0xFC00)
smb_vwv[10]=33011 (0x80F3)
smb_vwv[11]= 128 (0x80)
smb_vwv[12]=53811 (0xD233)
smb_vwv[13]=40390 (0x9DC6)
smb_vwv[14]=51258 (0xC83A)
smb_vwv[15]= 8193 (0x2001)
smb_vwv[16]= 254 (0xFE)
smb_bcc=58
[2007/12/10 03:57:50, 10] lib/util.c:dump_data(2264)
[000] 6C 6F 63 61 6C 68 6F 73 74 00 00 00 00 00 00 00 localhos t.......
[010] 60 28 06 06 2B 06 01 05 05 02 A0 1E 30 1C A0 0E `(..+... ....0...
[020] 30 0C 06 0A 2B 06 01 04 01 82 37 02 02 0A A3 0A 0...+... ..7.....
[030] 30 08 A0 06 1B 04 4E 4F 4E 45 0.....NO NE
[2007/12/10 03:57:51, 10] lib/util_sock.c:read_smb_length_return_keepalive(623)
got smb length of 166
[2007/12/10 03:57:51, 6] smbd/process.c:process_smb(1067)
got message type 0x0 of len 0xa6
[2007/12/10 03:57:51, 3] smbd/process.c:process_smb(1068)
Transaction 1 of length 170
[2007/12/10 03:57:51, 5] lib/util.c:show_msg(484)
[2007/12/10 03:57:51, 5] lib/util.c:show_msg(494)
size=166
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=51205
smb_tid=0
smb_pid=16404
smb_uid=0
smb_mid=2
smt_wct=12
smb_vwv[ 0]= 255 (0xFF)
smb_vwv[ 1]= 0 (0x0)
smb_vwv[ 2]=65535 (0xFFFF)
smb_vwv[ 3]= 2 (0x2)
smb_vwv[ 4]= 1 (0x1)
smb_vwv[ 5]= 0 (0x0)
smb_vwv[ 6]= 0 (0x0)
smb_vwv[ 7]= 84 (0x54)
smb_vwv[ 8]= 0 (0x0)
smb_vwv[ 9]= 0 (0x0)
smb_vwv[10]=53340 (0xD05C)
smb_vwv[11]=32768 (0x8000)
smb_bcc=107
[2007/12/10 03:57:51, 10] lib/util.c:dump_data(2264)
[000] 60 52 06 06 2B 06 01 05 05 02 A0 48 30 46 A0 0E `R..+... ...H0F..
[010] 30 0C 06 0A 2B 06 01 04 01 82 37 02 02 0A A2 34 0...+... ..7....4
[020] 04 32 4E 54 4C 4D 53 53 50 00 01 00 00 00 15 82 .2NTLMSS P.......
[030] 08 60 09 00 09 00 20 00 00 00 09 00 09 00 29 00 .`.... . ......).
[040] 00 00 57 4F 52 4B 47 52 4F 55 50 4C 4F 43 41 4C ..WORKGR OUPLOCAL
[050] 48 4F 53 54 00 55 00 6E 00 69 00 78 00 00 00 53 HOST.U.n .i.x...S
[060] 00 61 00 6D 00 62 00 61 00 00 00 .a.m.b.a ...
[2007/12/10 03:57:51, 3] smbd/process.c:switch_message(926)
switch message SMBsesssetupX (pid 16405) conn 0x0
[2007/12/10 03:57:51, 3] smbd/sec_ctx.c:set_sec_ctx(241)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/12/10 03:57:51, 5] auth/auth_util.c:debug_nt_user_token(448)
NT user token: (NULL)
[2007/12/10 03:57:51, 5] auth/auth_util.c:debug_unix_user_token(474)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
[2007/12/10 03:57:51, 5] smbd/uid.c:change_to_root_user(288)
change_to_root_user: now uid=(0,0) gid=(0,0)
[2007/12/10 03:57:51, 3] smbd/sesssetup.c:reply_sesssetup_and_X(1244)
wct=12 flg2=0xc805
[2007/12/10 03:57:51, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(1029)
Doing spnego session setup
[2007/12/10 03:57:51, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(1060)
NativeOS=[Unix] NativeLanMan=[Samba] PrimaryDomain=[]
[2007/12/10 03:57:51, 10] smbd/password.c:register_vuid(186)
register_vuid: allocated vuid = 100
[2007/12/10 03:57:51, 10] smbd/sesssetup.c:check_spnego_blob_complete(975)
check_spnego_blob_complete: needed_len = 84, pblob->length = 84
[2007/12/10 03:57:51, 5] smbd/sesssetup.c:parse_spnego_mechanisms(667)
parse_spnego_mechanisms: Got OID 1 3 6 1 4 1 311 2 2 10
[2007/12/10 03:57:51, 3] smbd/sesssetup.c:reply_spnego_negotiate(697)
reply_spnego_negotiate: Got secblob of size 50
[2007/12/10 03:57:51, 5] auth/auth.c:make_auth_context_subsystem(486)
Making default auth method list for standalone security=user, encrypt passwords = yes
[2007/12/10 03:57:51, 5] auth/auth.c:smb_register_auth(47)
Attempting to register auth backend sam
[2007/12/10 03:57:51, 5] auth/auth.c:smb_register_auth(59)
Successfully added auth method 'sam'
[2007/12/10 03:57:51, 5] auth/auth.c:smb_register_auth(47)
Attempting to register auth backend sam_ignoredomain
[2007/12/10 03:57:51, 5] auth/auth.c:smb_register_auth(59)
Successfully added auth method 'sam_ignoredomain'
[2007/12/10 03:57:51, 5] auth/auth.c:smb_register_auth(47)
Attempting to register auth backend unix
[2007/12/10 03:57:51, 5] auth/auth.c:smb_register_auth(59)
Successfully added auth method 'unix'
[2007/12/10 03:57:51, 5] auth/auth.c:smb_register_auth(47)
Attempting to register auth backend winbind
[2007/12/10 03:57:51, 5] auth/auth.c:smb_register_auth(59)
Successfully added auth method 'winbind'
[2007/12/10 03:57:51, 5] auth/auth.c:smb_register_auth(47)
Attempting to register auth backend smbserver
[2007/12/10 03:57:51, 5] auth/auth.c:smb_register_auth(59)
Successfully added auth method 'smbserver'
[2007/12/10 03:57:51, 5] auth/auth.c:smb_register_auth(47)
Attempting to register auth backend trustdomain
[2007/12/10 03:57:51, 5] auth/auth.c:smb_register_auth(59)
Successfully added auth method 'trustdomain'
[2007/12/10 03:57:51, 5] auth/auth.c:smb_register_auth(47)
Attempting to register auth backend ntdomain
[2007/12/10 03:57:51, 5] auth/auth.c:smb_register_auth(59)
Successfully added auth method 'ntdomain'
[2007/12/10 03:57:51, 5] auth/auth.c:smb_register_auth(47)
Attempting to register auth backend guest
[2007/12/10 03:57:51, 5] auth/auth.c:smb_register_auth(59)
Successfully added auth method 'guest'
[2007/12/10 03:57:51, 5] auth/auth.c:load_auth_module(391)
load_auth_module: Attempting to find an auth method to match guest
[2007/12/10 03:57:51, 5] auth/auth.c:load_auth_module(416)
load_auth_module: auth method guest has a valid init
[2007/12/10 03:57:51, 5] auth/auth.c:load_auth_module(391)
load_auth_module: Attempting to find an auth method to match sam
[2007/12/10 03:57:51, 5] auth/auth.c:load_auth_module(416)
load_auth_module: auth method sam has a valid init
[2007/12/10 03:57:51, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(63)
Got NTLMSSP neg_flags=0x60088215
NTLMSSP_NEGOTIATE_UNICODE
NTLMSSP_REQUEST_TARGET
NTLMSSP_NEGOTIATE_SIGN
NTLMSSP_NEGOTIATE_NTLM
NTLMSSP_NEGOTIATE_ALWAYS_SIGN
NTLMSSP_NEGOTIATE_NTLM2
NTLMSSP_NEGOTIATE_128
NTLMSSP_NEGOTIATE_KEY_EXCH
[2007/12/10 03:57:51, 5] auth/auth.c:get_ntlm_challenge(97)
auth_get_challenge: module guest did not want to specify a challenge
[2007/12/10 03:57:51, 5] auth/auth.c:get_ntlm_challenge(97)
auth_get_challenge: module sam did not want to specify a challenge
[2007/12/10 03:57:51, 5] auth/auth.c:get_ntlm_challenge(137)
auth_context challenge created by random
[2007/12/10 03:57:51, 5] auth/auth.c:get_ntlm_challenge(138)
challenge is:
[2007/12/10 03:57:51, 5] lib/util.c:dump_data(2264)
[000] F6 32 D2 2D 95 77 20 D8 .2.-.w .
[2007/12/10 03:57:51, 5] lib/util.c:show_msg(484)
[2007/12/10 03:57:51, 5] lib/util.c:show_msg(494)
size=272
smb_com=0x73
smb_rcls=22
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=16404
smb_uid=100
smb_mid=2
smt_wct=4
smb_vwv[ 0]= 255 (0xFF)
smb_vwv[ 1]= 0 (0x0)
smb_vwv[ 2]= 0 (0x0)
smb_vwv[ 3]= 171 (0xAB)
smb_bcc=229
[2007/12/10 03:57:51, 10] lib/util.c:dump_data(2264)
[000] A1 81 A8 30 81 A5 A0 03 0A 01 01 A1 0C 06 0A 2B ...0.... .......+
[010] 06 01 04 01 82 37 02 02 0A A2 81 8F 04 81 8C 4E .....7.. .......N
[020] 54 4C 4D 53 53 50 00 02 00 00 00 12 00 12 00 30 TLMSSP.. .......0
[030] 00 00 00 15 82 8A 60 F6 32 D2 2D 95 77 20 D8 00 ......`. 2.-.w ..
[040] 00 00 00 00 00 00 00 4A 00 4A 00 42 00 00 00 4C .......J .J.B...L
[050] 00 4F 00 43 00 41 00 4C 00 48 00 4F 00 53 00 54 .O.C.A.L .H.O.S.T
[060] 00 02 00 12 00 4C 00 4F 00 43 00 41 00 4C 00 48 .....L.O .C.A.L.H
[070] 00 4F 00 53 00 54 00 01 00 12 00 4C 00 4F 00 43 .O.S.T.. ...L.O.C
[080] 00 41 00 4C 00 48 00 4F 00 53 00 54 00 04 00 00 .A.L.H.O .S.T....
[090] 00 03 00 12 00 6C 00 6F 00 63 00 61 00 6C 00 68 .....l.o .c.a.l.h
[0A0] 00 6F 00 73 00 74 00 00 00 00 00 55 00 6E 00 69 .o.s.t.. ...U.n.i
[0B0] 00 78 00 00 00 53 00 61 00 6D 00 62 00 61 00 20 .x...S.a .m.b.a.
[0C0] 00 33 00 2E 00 30 00 2E 00 32 00 37 00 61 00 00 .3...0.. .2.7.a..
[0D0] 00 57 00 4F 00 52 00 4B 00 47 00 52 00 4F 00 55 .W.O.R.K .G.R.O.U
[0E0] 00 50 00 00 00 .P...
[2007/12/10 03:57:51, 10] lib/util_sock.c:read_smb_length_return_keepalive(623)
got smb length of 268
[2007/12/10 03:57:51, 6] smbd/process.c:process_smb(1067)
got message type 0x0 of len 0x10c
[2007/12/10 03:57:51, 3] smbd/process.c:process_smb(1068)
Transaction 2 of length 272
[2007/12/10 03:57:51, 5] lib/util.c:show_msg(484)
[2007/12/10 03:57:51, 5] lib/util.c:show_msg(494)
size=268
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=51205
smb_tid=0
smb_pid=16404
smb_uid=100
smb_mid=3
smt_wct=12
smb_vwv[ 0]= 255 (0xFF)
smb_vwv[ 1]= 0 (0x0)
smb_vwv[ 2]=65535 (0xFFFF)
smb_vwv[ 3]= 2 (0x2)
smb_vwv[ 4]= 1 (0x1)
smb_vwv[ 5]= 0 (0x0)
smb_vwv[ 6]= 0 (0x0)
smb_vwv[ 7]= 186 (0xBA)
smb_vwv[ 8]= 0 (0x0)
smb_vwv[ 9]= 0 (0x0)
smb_vwv[10]=53340 (0xD05C)
smb_vwv[11]=32768 (0x8000)
smb_bcc=209
[2007/12/10 03:57:51, 10] lib/util.c:dump_data(2264)
[000] A1 81 B7 30 81 B4 A2 81 B1 04 81 AE 4E 54 4C 4D ...0.... ....NTLM
[010] 53 53 50 00 03 00 00 00 18 00 18 00 40 00 00 00 SSP..... ....@...
[020] 18 00 18 00 58 00 00 00 12 00 12 00 70 00 00 00 ....X... ....p...
[030] 0A 00 0A 00 82 00 00 00 12 00 12 00 8C 00 00 00 ........ ........
[040] 10 00 10 00 9E 00 00 00 15 82 08 60 AF CD DC 7A ........ ...`...z
[050] 3C 7E 65 11 00 00 00 00 00 00 00 00 00 00 00 00 <~e..... ........
[060] 00 00 00 00 81 F5 6D 8D EC 24 D0 52 02 35 20 2B ......m. .$.R.5 +
[070] 75 FA 5B A3 E2 EC 1B 88 67 33 47 88 57 00 4F 00 u.[..... g3G.W.O.
[080] 52 00 4B 00 47 00 52 00 4F 00 55 00 50 00 67 00 R.K.G.R. O.U.P.g.
[090] 75 00 65 00 73 00 74 00 4C 00 4F 00 43 00 41 00 u.e.s.t. L.O.C.A.
[0A0] 4C 00 48 00 4F 00 53 00 54 00 DE 44 14 1D 88 9D L.H.O.S. T..D....
[0B0] C7 20 0C CE 31 C7 0C 2C 22 DD 00 55 00 6E 00 69 . ..1.., "..U.n.i
[0C0] 00 78 00 00 00 53 00 61 00 6D 00 62 00 61 00 00 .x...S.a .m.b.a..
[0D0] 00 .
[2007/12/10 03:57:51, 3] smbd/process.c:switch_message(926)
switch message SMBsesssetupX (pid 16405) conn 0x0
[2007/12/10 03:57:51, 3] smbd/sec_ctx.c:set_sec_ctx(241)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/12/10 03:57:51, 5] auth/auth_util.c:debug_nt_user_token(448)
NT user token: (NULL)
[2007/12/10 03:57:51, 5] auth/auth_util.c:debug_unix_user_token(474)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
[2007/12/10 03:57:51, 5] smbd/uid.c:change_to_root_user(288)
change_to_root_user: now uid=(0,0) gid=(0,0)
[2007/12/10 03:57:51, 3] smbd/sesssetup.c:reply_sesssetup_and_X(1244)
wct=12 flg2=0xc805
[2007/12/10 03:57:51, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(1029)
Doing spnego session setup
[2007/12/10 03:57:51, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(1060)
NativeOS=[Unix] NativeLanMan=[Samba] PrimaryDomain=[]
[2007/12/10 03:57:51, 10] smbd/sesssetup.c:check_spnego_blob_complete(975)
check_spnego_blob_complete: needed_len = 186, pblob->length = 186
[2007/12/10 03:57:51, 3] libsmb/ntlmssp.c:ntlmssp_server_auth(739)
Got user=[guest] domain=[WORKGROUP] workstation=[LOCALHOST] len1=24 len2=24
[2007/12/10 03:57:51, 5] auth/auth_ntlmssp.c:auth_ntlmssp_set_challenge(69)
auth_context challenge set by NTLMSSP callback (NTLM2)
[2007/12/10 03:57:51, 5] auth/auth_ntlmssp.c:auth_ntlmssp_set_challenge(70)
challenge is:
[2007/12/10 03:57:51, 5] lib/util.c:dump_data(2264)
[000] 87 F4 75 31 E4 50 7B 1A ..u1.P{. |
|