Hi Theo,

Theo de Raadt wrote on Sat, Oct 04, 2014 at 11:37:21AM -0600:
> Ingo Schwarze wrote:

>> That utility is grossly disgusting.  It's a pity we can't delete
>> it completely [...]

> Why not?

Well, in a non-YP environment,

  grep ^foobar /etc/group

is just fine, but in a YP environment, i'm not aware of any useable
replacement for groupinfo(8):

  schwarze@iris $ grep mail /etc/group   
  schwarze@iris $ ypmatch mail group 
  mail:*:8:mail
  schwarze@iris $ groupinfo mail
  name    mail
  passwd  *
  gid     8
  members mail 
  schwarze@iris $ grep dialer /etc/group
  dialer:*:117:schwarze
  schwarze@iris $ ypmatch dialer group
  Can't match key dialer in map group.byname. Reason: No such key in map
  schwarze@iris $ groupinfo dialer
  name    dialer
  passwd  *
  gid     117
  members schwarze 
  schwarze@iris $ 

The only useful parts are userinfo(8) and groupinfo(8), and only
in YP environments.

> :-)

Oh hell, in case we all agree that i can delete all the rest,
i volunteer to rewrite userinfo(8) and groupinfo(8) from
scratch, how difficult can it be.

Yours,
  Ingo

Reply via email to