No_cascading_netgroups_please


title: No cascading netgroups please date: 2004-10-11 13:56:00

Top Tip: Red Hat and NIS groups

A while back, we ran into problems with netgroups and FreeBSD. I've lost the links, but it turns out that NIS groups can be a total of 1024 characters, not including whitespace. Lemme tell you, it doesn't take many entries like: (foo.example.com,,) to fill up that limit, and it's pretty stupid.

The solution, such as it is, is to create container netgroups like this: master.netgroup @subgroup1, @subgroup2 @subgroup1 (foo.example.com,,) ... It's a crock, but at least it's a solution for FreeBSD.

Well, last week it caused problems. We've got a RedHat machine, and guess what? Yep, doesn't recursively expand the netgroups: if you tell it to export to master.netgroup, it'll say it's doing it, but won't actually do it. It'll happily export to subgroup1 if you list them explicitly; it will not expand master.netgroup into subgroup1 and subgroup2.

Bollocks. Bollocks, I say.