Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!mips!moosehead.mips.com!trevc From: trevc@moosehead.mips.com (Trevor Cotton) Newsgroups: comp.sys.mips Subject: Re: /etc/netgroup syntax? Message-ID: <1941@spim.mips.COM> Date: 5 Apr 91 20:35:52 GMT References: Sender: pmm@mips.COM Reply-To: trevc@mips.com Distribution: na Organization: Mips Computer Systems Inc., Sunnyvale, CA Lines: 39 Nntp-Posting-Host: moosehead.mips.com In article , lgy@phys.washington.edu (Laurence G. Yaffe) writes: > > The man page describing the syntax of the /etc/netgroup file is less > than precise. Is there any standard way to break long entries across > multiple lines? Experimentation (with RISCos 4.52) suggests that \ > is ignored when a netgroup is used by exportfs (i.e., a netgroup name > appears in /etc/exports), but this does not seem to be true when netgroups > are used (with NIS) in the password file (i.e., +@group entries). > > -- > -------------------------------------------------------------------------- > Laurence G. Yaffe Internet: lgy@newton.phys.washington.edu > University of Washington Bitnet: yaffe@uwaphast.bitnet If you have vis.conf setup to use files to resolve netgroups, then the following applies 1) An entry has to be on one line. The \ character is not valid ( because the code uses fgets to read in each line ) 2) After the group name, the rest of the line can only contain (host,user,domain) triplets. Names of other groups are not allowed. 3) The maximum length of a line is 4096 characters. If vis.conf is set up to use NIS ( YP ) to resolve netgroups, and hence the makedbm command is used to convert the /etc/netgroups file, then 1) the \ character is valid 2) A netgroup entry can contain the name of another group as well as (host,user,domain) triplets. So, either use NIS or use a number of smaller groups, and export to multiple groups. There is an open bug on this one( bug 8355 ). --trevc--