Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news-res.gsl.net!news.gsl.net!sgigate.sgi.com!sdd.hp.com!hamblin.math.byu.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: help on NIS client Date: 28 Jun 1996 14:09:30 GMT Organization: Columbia University Center for Telecommunications Research Lines: 73 Message-ID: <4r0p2q$ruc@sol.ctr.columbia.edu> References: <4qumb6$pk6@overload.lbl.gov> <4qvo0e$9me@uhura.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@alpha1.phoenix.net) had the courage to say: Couple of quick comments: : Jin Guojun[ITG] (jin@gracie.lbl.gov) wrote: : : I have installed NIS server on one FreeBSD machine by set following flags : : in /etc/sysconfig: : : nis_serverflags="-dns -k" #for 2.1R, or "-n" for 2.2-SNAP : : yppasswddflags="-m /var/yp/master.passwd -s -f" Note that these yppasswdd options are for 2.1.x. For 2.2, you need to use -t instead of -m, and the -s anf -f flags have had their polarity switched. This is all documented in the rpc.yppasswdd(8) man page. If you're wondering why it's different, it's because the 2.1.0 yppasswdd was written by someone else (Olaf Kirch in this case), and I wrote a completely new rpc.yppasswdd for 2.2. I decided to have 'updage GECOS' and 'update shell' on by default, and I needed the -m flag for the 'multidomain' option. The only other flag I could think of to use for the old -m function was -t ('template' file). : : defaultdomainname=test : : cd /var/yp : : echo NISServName > ypservers I think 'echo NISServName NISServName > ypservers' is needed here. Maps need both key and data fields. In this case, they happen to be the same. : : echo $subnet $netmask > securenets : : make : : reboot : : ---------------------------------------- : : On a NIS client machine, I did this in /etc/sysconfig: : : nis_clientflags="-s" : : nis_ypsetflags="NISServName" : : defaultdomainname=test : : reboot : : ypwhich : : NISServName : : ypcat passwd | grep myname : : myname:password-encrypted:uid:.... : : cd ~myname : : Unknown user: myname. : : Would some one please point what I missed? : Might be too simple, but I will ask anyway... : Did you remember the +:::::::: in the passwd file? : Paul Flores Looks like he didn't. :) Not also that putting +::: in /etc/group is a good idea too. -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're ever in trouble, go to the CTR. Ask for Bill. He will help you." =============================================================================