'getent group' only returns a few groups - Solaris 8

Torbjorn Olofsson tol at du.se
Tue May 14 06:07:04 GMT 2002


> On Sat, 11 May 2002, Travis Freeland wrote:
>
> > In order to get samba 2.2.4 working correctly under solaris (where we
> > rely heavily on NIS unix groups) I had to make a couple of changes to
> > username.c (basically take it back to the 2.0 style unix group checking
> > code .. and take out the winbind group check which was failing because
> > we dont run winbind).
> >
> > I'm assuming that those who are testing samba and ok'ing a production
> > release are only testing a winbind implementation?
>
> I've got a moderately sized Solaris site running the Samba 2.2 code
> in user mode security (PDC for NT  & 9x).  I've not heard of any
> complaints from them.  All UNIX user accounts are maintained in
> NIS with local smbpasswd files.
>
> What problem did you see?
>
>

We recently tried 2.2.4 in our environment (Solaris 8), with all users
and groups in LDAP, with local smbpasswd files. Samba did not seem to be
able to map gid to group name. Here's the share I was trying to mount:

path = /home/student/%g/%u

However, this is what the log file says:

[2002/05/14 14:14:18, 3] smbd/sec_ctx.c:(162)
  get_current_groups: user is in 1 groups: 10017
[2002/05/14 14:14:18, 3] smbd/password.c:(336)
  uid 11420 registered to name p00tol
[2002/05/14 14:14:18, 3] smbd/password.c:(338)
  Clearing default real name
[2002/05/14 14:14:18, 3] smbd/password.c:(340)
  User name: p00tol     Real name: Torbjorn Olofsson
[2002/05/14 14:14:18, 3] smbd/process.c:(1011)
  Chained message
[2002/05/14 14:14:18, 3] smbd/process.c:(673)
  switch message SMBtconX (pid 5349)
[2002/05/14 14:14:18, 3] smbd/sec_ctx.c:(314)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2002/05/14 14:14:18, 3] smbd/service.c:(143)
  checking for home directory p00tol gave /home/student/-1/p00tol
[2002/05/14 14:14:18, 3] smbd/service.c:(211)
  find_service() failed to find service p00tol
[2002/05/14 14:14:18, 0] smbd/service.c:(252)
  vmw-tol (130.243.36.197) couldn't find service p00tol
[2002/05/14 14:14:18, 3] smbd/error.c:(91)
  error string = No such file or directory
[2002/05/14 14:14:18, 3] smbd/error.c:(110)
  error packet at smbd/reply.c(165) cmd=117 (SMBtconX)
NT_STATUS_BAD_NETWORK_NAME

The group name should be 'p00' and not '-1' :).
This works fine in samba 2.0.10, so something must have happened in
2.2....

/Torbjörn Olofsson





More information about the samba-technical mailing list