[Samba] No protocol supported

Yan Seiner yan at seiner.com
Tue Jan 8 02:42:55 GMT 2008


I'm trying to log into a problem server.  The server is running an old 
kernel - 2.6.10 - and samba 3.0.25C.

When I try to mount a share from another server running samba 3.0.26b, I 
get:

root at Lethe:/tmp/log/samba# mount.cifs //kahn/yan /tmp/x --verbose -o 
user=xxx,pass=yyy,ip=10.8.0.1
parsing options: user=xxx,pass=yyy,ip=10.8.0.1
ip address 10.8.0.1 override specified
ip address specified explicitly

mount.cifs kernel mount options 
unc=//kahn\yan,ver=1,user=xxx,pass=yyy,ip=10.8.0.1
mount error 22 = Invalid argument
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)


[2008/01/07 21:24:27, 0] smbd/negprot.c:reply_negprot(608)
  No protocol supported !

or, with the verbosity turned all the way up:

[2008/01/07 21:29:24, 6] param/loadparm.c:lp_file_list_changed(3070)
  lp_file_list_changed()
  file /etc/samba/smb.conf -> /etc/samba/smb.conf  last mod_time: Mon 
Jan  7 21:03:12 2008
 
[2008/01/07 21:29:24, 3] smbd/oplock.c:init_oplocks(863)
  init_oplocks: initializing messages.
[2008/01/07 21:29:24, 3] smbd/oplock_linux.c:linux_init_kernel_oplocks(276)
  Linux kernel oplocks enabled
[2008/01/07 21:29:24, 10] 
lib/util_sock.c:read_smb_length_return_keepalive(623)
  got smb length of 47
[2008/01/07 21:29:24, 6] smbd/process.c:process_smb(1067)
  got message type 0x0 of len 0x2f
[2008/01/07 21:29:24, 3] smbd/process.c:process_smb(1068)
  Transaction 0 of length 51
[2008/01/07 21:29:24, 5] lib/util.c:show_msg(484)
[2008/01/07 21:29:24, 5] lib/util.c:show_msg(494)
  size=47
  smb_com=0x72
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=0
  smb_flg2=32769
  smb_tid=0
  smb_pid=8136
  smb_uid=0
  smb_mid=58
  smt_wct=0
  smb_bcc=12
[2008/01/07 21:29:24, 10] lib/util.c:dump_data(2263)
  [000] 02 4E 54 20 4C 4D 20 30  2E 31 32 00              .NT LM 0 .12.
[2008/01/07 21:29:24, 3] smbd/process.c:switch_message(926)
  switch message SMBnegprot (pid 13533) conn 0x0
[2008/01/07 21:29:24, 0] smbd/process.c:smb_dump(881)
  created /tmp/SMBnegprot.75.req len 51
[2008/01/07 21:29:24, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/01/07 21:29:24, 5] auth/auth_util.c:debug_nt_user_token(448)
  NT user token: (NULL)
[2008/01/07 21:29:24, 5] auth/auth_util.c:debug_unix_user_token(474)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2008/01/07 21:29:24, 5] smbd/uid.c:change_to_root_user(288)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2008/01/07 21:29:24, 3] smbd/negprot.c:reply_negprot(505)
  Requested protocol [NT LM 0.12]
[2008/01/07 21:29:24, 10] lib/util.c:set_remote_arch(2238)
  set_remote_arch: Client arch is 'CIFSFS'
[2008/01/07 21:29:24, 6] param/loadparm.c:lp_file_list_changed(3070)
  lp_file_list_changed()
  file /etc/samba/smb.conf -> /etc/samba/smb.conf  last mod_time: Mon 
Jan  7 21:03:12 2008
 
[2008/01/07 21:29:24, 5] smbd/connection.c:claim_connection(182)
  claiming  0
[2008/01/07 21:29:24, 0] smbd/negprot.c:reply_negprot(608)
  No protocol supported !
[2008/01/07 21:29:24, 5] smbd/negprot.c:reply_negprot(612)
  negprot index=-1
[2008/01/07 21:29:24, 0] smbd/process.c:smb_dump(881)
  created /tmp/SMBnegprot.75.resp len 41
[2008/01/07 21:29:24, 5] lib/util.c:show_msg(484)
[2008/01/07 21:29:24, 5] lib/util.c:show_msg(494)
  size=37
  smb_com=0x72
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=128
  smb_flg2=49153
  smb_tid=0
  smb_pid=8136
  smb_uid=0
  smb_mid=58
  smt_wct=1
  smb_vwv[ 0]=65535 (0xFFFF)
  smb_bcc=0
[2008/01/07 21:29:24, 10] lib/util_sock.c:read_data(525)
  read_data: read of 4 returned 0. Error = Success
[2008/01/07 21:29:24, 10] lib/util_sock.c:receive_smb_raw(672)
  receive_smb_raw: length < 0!
[2008/01/07 21:29:24, 3] smbd/process.c:timeout_processing(1328)
  timeout_processing: End of file from client (client has disconnected).
[2008/01/07 21:29:24, 5] lib/gencache.c:gencache_shutdown(94)
  Closing cache file
[2008/01/07 21:29:24, 5] libsmb/namecache.c:namecache_shutdown(79)
  namecache_shutdown: netbios namecache closed successfully.
[2008/01/07 21:29:24, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/01/07 21:29:24, 5] auth/auth_util.c:debug_nt_user_token(448)
  NT user token: (NULL)
[2008/01/07 21:29:24, 5] auth/auth_util.c:debug_unix_user_token(474)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2008/01/07 21:29:24, 5] smbd/uid.c:change_to_root_user(288)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2008/01/07 21:29:24, 3] smbd/connection.c:yield_connection(69)
  Yielding connection to
[2008/01/07 21:29:24, 3] smbd/server.c:exit_server_common(768)
  Server exit (normal exit)

I can mount shares on other servers, but I cannot mount shares on kahn 
from samba servers.  I can mount kahn shares from windows just fine....




More information about the samba mailing list