Re: getnetgrent(3) fails to parse long netgroup entry if it is stored in NIS

2022-03-15 Thread Rick Macklem
Oh, and you can have netgroups in netgroups, so you can do something like... net0 net1,net2 net1 (host1,,),(host2,,) net2 (host3,,),(host4,,) then net0 has all 4 hosts in it. I think you need to break the large netgroup up into sub netgroups where each one is <= 1024 bytes long. rick

Re: getnetgrent(3) fails to parse long netgroup entry if it is stored in NIS

2022-03-15 Thread Rick Macklem
"man 5 netgroup" notes that a netgroup line is limited to 1024bytes. Are you sure you haven't just exceeded this limit? rick From: owner-freebsd-curr...@freebsd.org on behalf of Yasuhiro Kimura Sent: Tuesday, March 15, 2022 12:48 PM To: freebsd-current

getnetgrent(3) fails to parse long netgroup entry if it is stored in NIS

2022-03-15 Thread Yasuhiro Kimura
Hello, I use netgroup stored in NIS database to control access to NFS server. Recently I added some hosts to netgroup that access to NFS server is permitted. And after that mountd(8) writes such messages as following to syslog. Mar 15 17:16:59 server mountd[4276]: can't get address info for host