Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.bhp.com.au!mel.dit.csiro.au!munnari.OZ.AU!news.hawaii.edu!ames!enews.sgi.com!sgigate.sgi.com!news.msfc.nasa.gov!sol.ctr.columbia.edu!startide.ctr.columbia.edu!wpaul From: wpaul@ctr.columbia.edu (Bill Paul) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: No NIS groups in /etc/hosts.equiv? Date: 23 Apr 1996 21:45:49 GMT Organization: Columbia University Center for Telecommunications Research Lines: 53 Message-ID: <4ljj2d$mos@sol.ctr.columbia.edu> References: <4lidim$9d9@muenchen.photogrammetrie.de> NNTP-Posting-Host: startide.ctr.columbia.edu X-Newsreader: TIN [version 1.2 PL2] Daring to challenge the will of the almighty Leviam00se, Gerhard Mehldau (mehldau@photogrammetrie.de) had the courage to say: : Hello world, : I am trying to use NIS groups in my /etc/hosts.equiv file, : but they don't seem to be working. Since there is no man- : page for hosts.equiv, I thought I'd ask if someone knows : more about this -- is it a bug, a missing feature, or am I : overlooking something simple? : This is with FreeBSD 2.1.0-RELEASE, and NIS works just : fine with the passwd and group files. : Gerhard You can use netgroups (careful, that's netgroups, not groups) with /etc/hosts.equiv (and /etc/hosts.lpd, and /.rhosts, and anything else that uses the ruserok() function). There is one bug to be aware of in FreeBSD 2.1.0-RELEASE, which is that rlogind/rshd will core dump if /etc/netgroup doesn't exist and NIS is turned on. To turn on NIS netgroup support, you can do either: # rm -f /etc/netgroup # touch /etc/netgroup (i.e. create an empty /etc/netgroup file) or # rm -f /etc/netgroup # echo + > /etc/netgroup (create a file with just a + in it) This should be documented in the netgroup(5) man page. Note that /etc/netgroup does not exist by default: you must create it after you install FreeBSD. You'll also need to make sure that you have access to the netgroup, netgroup.byname and netgroup.byhost maps through NIS. Once you do this, you can add things like: +@equiv-hosts to your /etc/hosts.equiv file. -Bill -- ============================================================================= -Bill Paul (212) 854-6020 | System Manager, Master of Unix-Fu Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ============================================================================= "If you are in trouble, go the CTR. Ask for Bill. He will help you." =============================================================================