Initgroups errors.on OSX with WinXP

The DJ hartman at mac.com
Thu Feb 28 11:59:51 GMT 2002


Oke, I patched it too use unknown, now the message about the problem with
the groups disappears, but the initgroups still fails.

Group unknown has id 31
User unknown has id 99
Group admin has id 80

Here is part of a level 10 debug.
Of me accessing my guestshare from smbclient.
Can someone clarify to me what is going on here?


[2002/02/28 20:40:36, 3] smbd/reply.c:reply_sesssetup_and_X(919)
  Using unix username \unknown
[2002/02/28 20:40:36, 7] param/loadparm.c:lp_servicenumber(3509)
  lp_servicenumber: couldn't find \unknown
[2002/02/28 20:40:36, 7] param/loadparm.c:lp_servicenumber(3509)
  lp_servicenumber: couldn't find homes
[2002/02/28 20:40:36, 7] param/loadparm.c:lp_servicenumber(3509)
  lp_servicenumber: couldn't find homes
[2002/02/28 20:40:36, 10] smbd/password.c:register_vuid(288)
  register_vuid: (99,99) \unknown unknown  guest=1
[2002/02/28 20:40:36, 10] smbd/password.c:register_vuid(299)
  register_vuid: allocated vuid = 100
[2002/02/28 20:40:36, 3] smbd/sec_ctx.c:push_sec_ctx(281)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2002/02/28 20:40:36, 3] smbd/uid.c:push_conn_ctx(284)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2002/02/28 20:40:36, 3] smbd/sec_ctx.c:set_sec_ctx(313)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2002/02/28 20:40:36, 10] nsswitch/wb_client.c:winbind_initgroups(299)
  winbind_getgroups: \unknown: result = FAIL
[2002/02/28 20:40:36, 0] smbd/sec_ctx.c:initialise_groups(229)
  Unable to initgroups. Error was Input/output error
[2002/02/28 20:40:36, 3] smbd/sec_ctx.c:pop_sec_ctx(420)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2002/02/28 20:40:36, 3] smbd/sec_ctx.c:get_current_groups(162)
  get_current_groups: user is in 3 groups: 0, 0, 80
[2002/02/28 20:40:36, 10] smbd/uid.c:uid_to_sid(569)
  uid_to_sid: local 99 -> S-1-5-21-1191381323-985346791-2016176972-1198
[2002/02/28 20:40:36, 10] smbd/uid.c:gid_to_sid(597)
  gid_to_sid: local 99 -> S-1-5-21-1191381323-985346791-2016176972-1199
[2002/02/28 20:40:36, 10] smbd/uid.c:gid_to_sid(597)
  gid_to_sid: local 0 -> S-1-5-21-1191381323-985346791-2016176972-1001
[2002/02/28 20:40:36, 10] smbd/uid.c:gid_to_sid(597)
  gid_to_sid: local 0 -> S-1-5-21-1191381323-985346791-2016176972-1001
[2002/02/28 20:40:36, 10] smbd/uid.c:gid_to_sid(597)
  gid_to_sid: local 80 -> S-1-5-21-1191381323-985346791-2016176972-1161
[2002/02/28 20:40:36, 5] smbd/password.c:create_nt_token(254)
  user token sid S-1-5-21-1191381323-985346791-2016176972-1198
[2002/02/28 20:40:36, 5] smbd/password.c:create_nt_token(254)
  user token sid S-1-5-21-1191381323-985346791-2016176972-1199
[2002/02/28 20:40:36, 5] smbd/password.c:create_nt_token(254)
  user token sid S-1-5-21-1191381323-985346791-2016176972-1001
[2002/02/28 20:40:36, 5] smbd/password.c:create_nt_token(254)
  user token sid S-1-5-21-1191381323-985346791-2016176972-1001
[2002/02/28 20:40:36, 5] smbd/password.c:create_nt_token(254)
  user token sid S-1-5-21-1191381323-985346791-2016176972-1161
[2002/02/28 20:40:36, 5] smbd/password.c:create_nt_token(254)
  user token sid S-1-1-0
[2002/02/28 20:40:36, 5] smbd/password.c:create_nt_token(254)
  user token sid S-1-5-2
[2002/02/28 20:40:36, 5] smbd/password.c:create_nt_token(254)
  user token sid S-1-5-32-546
[2002/02/28 20:40:36, 3] smbd/password.c:register_vuid(328)
  uid 99 registered to name \unknown
[2002/02/28 20:40:36, 3] smbd/password.c:register_vuid(330)
  Clearing default real name
[2002/02/28 20:40:36, 3] smbd/password.c:register_vuid(332)
  User name: \unknown    Real name: Unknown User
[2002/02/28 20:40:36, 6] smbd/reply.c:reply_sesssetup_and_X(1080)
  Client requested max send size of 2920
[2002/02/28 20:40:36, 3] smbd/process.c:chain_reply(1005)
  Chained message
[2002/02/28 20:40:36, 5] lib/util.c:show_msg(268)


on 28-02-2002 13:16, The DJ at hartman at mac.com wrote:

> on 28-02-2002 12:50, Andrew Bartlett at abartlet at pcug.org.au wrote:
> 
>> The DJ wrote:
>>> 
>>> To answer part of my questions.
>>> Nobody is the default group/user for guest access.
>>> In OSX both those have a gid/pid of -1 This is not allowed by the function
>>> winbind_initgroups in smbd/sec_ctx.c
>>> 
>>> This error never showed up before 10.1.3
>> 
>> Then tell apple to fix their OS (guest account as -1 is a *really* bad
>> idea).  In the meantime chose a new 'guest user = ' in your smb.conf.
> 
> I don't think they are going to do that just for us. Actually the account
> nobody is there for posix/linux/unix compatibility I think. Apple itself
> uses the account 'unknown' for these types of things. It has been this way
> since Nextstep I believe.
> 
> I'll patch my next release to use the account 'unknown' as the default guest
> account. Maybe samba's local.h can be patched to use unknown on Darwin from
> now on.
> 
>>> BTW. This function is called winbind_initgroups. I don't have winbind
>>> compiled, so why is this. If this is a function that is not only used by
>>> winbind but also by the base smbd, then I think it should not be prefixed
>>> with winbind.
>> 
>> It is winbind_initgroups becouse it *can* call winbind, and you can't
>> call it just 'initgroups' becouse then you would clash.
> 
> Well, then maybe it should be prefixed with something else ;-)
> Just buggin you. It just clashes with what I have learned about naming
> conventions.
> 
> DJ
---------------------------------------------------------------------------
Universiteit Twente
---------------------------------------------------------------------------
Derk-Jan 'The DJ' Hartman
ICQnr: 10111559
Mail:  mailto:hartman at mac.com
WWW:   http://home.student.utwente.nl/d.hartman/
Goto:  http://www.student.utwente.nl/~macsatcampus





More information about the samba-technical mailing list