[Bug 566560] Re: samba server requires smbpasswd -a user constantly

Timbba timo.juonoja at gmail.com
Sat Jun 5 04:31:51 BST 2010


Here are some logs:

[2010/06/05 06:05:59,  3] auth/auth.c:222(check_ntlm_password)
  check_ntlm_password:  Checking password for unmapped user [COMPUTER]\[user1]@[COMPUTER] with the new password interface
[2010/06/05 06:05:59,  3] auth/auth.c:225(check_ntlm_password)
  check_ntlm_password:  mapped user is: [SERVER]\[user1]@[COMPUTER]
[2010/06/05 06:05:59,  5] ../lib/util/util.c:304(_dump_data)
  [0000] 44 6F 14 6F C8 66 C6 38                            Do.o.f.8 
[2010/06/05 06:05:59,  8] lib/util.c:1879(is_myname)
  is_myname("SERVER") returns 1
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2010/06/05 06:05:59,  3] smbd/uid.c:428(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/06/05 06:05:59,  5] auth/token_util.c:522(debug_nt_user_token)
  NT user token: (NULL)
[2010/06/05 06:05:59,  5] auth/token_util.c:548(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2010/06/05 06:05:59,  4] lib/substitute.c:504(automount_server)
  Home server: server
[2010/06/05 06:05:59,  4] lib/substitute.c:504(automount_server)
  Home server: server
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2010/06/05 06:05:59,  3] smbd/uid.c:428(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2010/06/05 06:05:59,  5] auth/token_util.c:522(debug_nt_user_token)
  NT user token: (NULL)
[2010/06/05 06:05:59,  5] auth/token_util.c:548(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2010/06/05 06:05:59,  3] smbd/uid.c:428(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2010/06/05 06:05:59,  5] auth/token_util.c:522(debug_nt_user_token)
  NT user token: (NULL)
[2010/06/05 06:05:59,  5] auth/token_util.c:548(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/06/05 06:05:59,  5] lib/username.c:133(Get_Pwnam_alloc)
  Finding user user1
[2010/06/05 06:05:59,  5] lib/username.c:77(Get_Pwnam_internals)
  Trying _Get_Pwnam(), username as lowercase is user1
[2010/06/05 06:05:59,  5] lib/username.c:110(Get_Pwnam_internals)
  Get_Pwnam_internals did find user [user1]!
[2010/06/05 06:05:59,  5] passdb/lookup_sid.c:1378(gid_to_sid)
  gid_to_sid: winbind failed to find a sid for gid 1000
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2010/06/05 06:05:59,  3] smbd/uid.c:428(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2010/06/05 06:05:59,  5] auth/token_util.c:522(debug_nt_user_token)
  NT user token: (NULL)
[2010/06/05 06:05:59,  5] auth/token_util.c:548(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2010/06/05 06:05:59,  3] smbd/uid.c:428(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2010/06/05 06:05:59,  5] auth/token_util.c:522(debug_nt_user_token)
  NT user token: (NULL)
[2010/06/05 06:05:59,  5] auth/token_util.c:548(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/06/05 06:05:59,  4] lib/substitute.c:504(automount_server)
  Home server: server
[2010/06/05 06:05:59,  4] lib/substitute.c:504(automount_server)
  Home server: server
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2010/06/05 06:05:59,  3] smbd/uid.c:428(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2010/06/05 06:05:59,  5] auth/token_util.c:522(debug_nt_user_token)
  NT user token: (NULL)
[2010/06/05 06:05:59,  5] auth/token_util.c:548(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2010/06/05 06:05:59,  3] smbd/uid.c:428(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2010/06/05 06:05:59,  5] auth/token_util.c:522(debug_nt_user_token)
  NT user token: (NULL)
[2010/06/05 06:05:59,  5] auth/token_util.c:548(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2010/06/05 06:05:59,  5] passdb/pdb_interface.c:1513(lookup_global_sam_rid)
  lookup_global_sam_rid: looking up RID 513.
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 3
[2010/06/05 06:05:59,  3] smbd/uid.c:428(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 2
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 3
[2010/06/05 06:05:59,  5] auth/token_util.c:522(debug_nt_user_token)
  NT user token: (NULL)
[2010/06/05 06:05:59,  5] auth/token_util.c:548(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2010/06/05 06:05:59,  5] passdb/pdb_tdb.c:609(tdbsam_getsampwrid)
  pdb_getsampwrid (TDB): error looking up RID 513 by key RID_00000201.
[2010/06/05 06:05:59,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 2
[2010/06/05 06:05:59,  5] passdb/pdb_interface.c:1576(lookup_global_sam_rid)
  Can't find a unix id for an unmapped group


I think you should change the importance to High due to network sharing is more and more used nowadays. It should work and it should be tested properly before releasing!

I bet that you can reproduce this bug easily and you should get more
logs by yourself. Just enable samba shares with passwords and test it
also after unmounting situations (after reboots, after shutdowns,
etc...)

-- 
samba server requires smbpasswd -a user constantly
https://bugs.launchpad.net/bugs/566560
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.



More information about the Ubuntu-server-bugs mailing list