Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!news.uoregon.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!math.ohio-state.edu!sol.ctr.columbia.edu!startide.ctr.columbia.edu!wpaul From: wpaul@ctr.columbia.edu (Bill Paul) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: NIS with SUNOS4.1.3 Date: 9 Sep 1995 03:34:16 GMT Organization: Columbia University Center for Telecommunications Research Lines: 48 Message-ID: <42r1vo$3j2@sol.ctr.columbia.edu> References: <42qgn6$e2m@gryphon.phoenix.net> NNTP-Posting-Host: startide.ctr.columbia.edu X-Newsreader: TIN [version 1.2 PL2] Daring to challenge the will of the almighty Leviam00se, Paul Flores (pflores@phoenix.net) had the courage to say: : Has anyone had any luck using a freebsd machine with a SUNOS NIS Master? I just composed a followup to this that I wanted to both post _and_ mail direct to the poster, but ended up only sending out the mail message by mistake. Roar. The short answer is: yes. All the time. : I can ypcat everything just fine, but no one can log in... :< The two magic steps to turn on access to the NIS passwd maps are: 1) add +::::::::: to /etc/master.passwd and them rebuild the password databases with pwd_mkdb(8). (That's a plus sign and nine colons.) 2) add +::: to the end of /etc/group. DO NOT use '+' entries in /etc/master.passwd that look like this: +:*:0:0:::::: +::0:0:::::: +:*:::::::: FreeBSD allows you to override _ALL_ fields in the NIS password maps, INCLUDING UIDs and GIDs. This means that the examples shown above will _NOT_ work as you might expect. Other systems may allow entries like these, but FreeBSD does not. Please try not to forget this. Don't whine to me about how this may seem non-intiutive or non-standard. This is how FreeBSD does it and that's that. If you don't like it, rerwite the code and send is the diffs. Also, DO NOT edit /etc/passwd: this file has no effect on system behavior. The administrator should edit only /etc/master.passwd and use pwd_mkdb(8) to rebuild the hashed databases afterwards. -Bill -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~T~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Bill Paul (212) 854-6020 | System Manager Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Møøse Illuminati: ignore it and be confused, or join it and be confusing! ~~~~~~ "Welcome to All Things BSDish! If it's not BSDish, it's crap!" ~~~~~~~