Path: utzoo!attcan!uunet!lll-winken!ames!ncar!mailrus!cornell!uw-beaver!rice!sun-spots-request From: moran@warbucks.ai.sri.com (Doug Moran) Newsgroups: comp.sys.sun Subject: RE: YP, Netgroups, And Fixing Insecure hosts.equiv Message-ID: <8901191803.AA04358@muir.ai.sri.com> Date: 26 Jan 89 09:31:37 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 39 Approved: Sun-Spots@rice.edu Original-Date: Thu, 19 Jan 89 10:03:09 PST X-Sun-Spots-Digest: Volume 7, Issue 122, message 10 of 11 X-Issue-Reference: v7n112 scs@lokkur.uucp (Steve Simmons): >YP has a db called netgroups. It allows you to define arbitrary >collections of users, machines, and domains (domain in this case means YP >domain, not Internet domain). You define a name followed by a list of >triplets of user, host, domain.... Minor notes: under 3.x (presumably also in 4.0), the order to the triplets is "(host,user,domain)", not "(user,host,domain)". Under 3.x, the "any" character is null (the reverse of the above stmt). Thus, in 3.x the above example "(*,host1,domain)" should have been "(host1,,domain)". Various usages of netgroups ignore certain fields, eg hosts.equiv ignores the user field, so the triplet "(host1,*,domain)" would have the same effect as "(host1,foo,domain)" and "(host1,,domain)". WARNING: A system administrator reading the netgroup(5) manual page would be inclined to believe that the triplet "(,,mydomain)" defines a groups of all the hosts in YP domain "mydomain". However, uses of netgroup in /etc/exports and /etc/hosts.equiv (and elsewhere?) ignore the domain field so that this triple is equivalent to "(,,)", ie universal permission. (Aside: even if this field was not ignored, defining a netgroup simply using your domain is not a good idea because domain names tend to be easy to guess and are trivial to spoof). The probable reason that the YP domain name is not used is that is not part of the information sent by the remote host to the server (e.g., in the rlogin preamble or in the authunix_param field of an nfsmount request). Since using this field would require the server to derive the client's domain name (even if that were possible in all cases), it would add little or nothing to the verification process. An early reference to this problem, with a somewhat different diagnosis, can be found in a message from Matt Landau (mlandau@diamond.bbn.com) in Sun-Spots v5n5 (20 March 87). Douglas B. Moran AI Center, SRI International moran@ai.sri.com