From owner-freebsd-questions Mon Jul 8 09:13:37 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA15334 for questions-outgoing; Mon, 8 Jul 1996 09:13:37 -0700 (PDT) Received: from iworks.InterWorks.org (deischen@iworks.interworks.org [128.255.18.10]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id JAA15319 for ; Mon, 8 Jul 1996 09:13:30 -0700 (PDT) Received: by iworks.InterWorks.org (1.37.109.8/16.2) id AA23712; Mon, 8 Jul 1996 11:10:32 -0500 Message-Id: <9607081610.AA23712@iworks.InterWorks.org> Date: Mon, 8 Jul 1996 11:10:32 -0500 From: "Daniel M. Eischen" To: freebsd-questions@FreeBSD.org Subject: YP/NIS and AMD Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Hi, I'm trying to get both AMD and YP/NIS set up on a FreeBSD 2.1-stable machine can log in with their user IDs and passwords, from a Sun SparcStation 20 (Solaris 2.5). I also want their home directories (using auto mounted homes) on the Sun to be automounted. The Sun is running NIS+ in NIS compatibility mode. So far, I've been somewhat successful, but I'm getting some error messages at bootup: clnttcp_create: RPC: program not registered. This message repeats 10/20 times during bootup. I could not use the standard /etc/sysconfig to start AMD and NIS; the above messages would just scroll by endlessly. I also had to start amd before NIS. Starting AMD before NIS in rc.local works. Users can log in with their user IDs and passwords on the Sun, and get their home directories auto mounted. The error messages are annoying, though, and it makes me think I missing something. BTW, is there any way to override the shell from the Sun password map? Users usually have it set to /bin/ksh, so as a hack I've loaded pdksh and made a link in /bin/ksh to /usr/local/bin/ksh. I've searched the archives for possible answers, but no luck. This is the first time I've tried using AMD and NIS, so if someone could point out what I'm doing wrong, I'd appreciate it. I've also been through the man pages and the 4.4BSD SMM. Thanks, Dan Eischen deischen@iworks.InterWorks.org Excerpts from /etc/sysconfig ---------------------------- # Set to the name of your host - this is pretty important! hostname="clc_rtr.clc.gdeb.com" # Set to the NIS domainname of your host, or NO if none defaultdomainname="clc.gdeb.com" # Set to appropriate flags if you want to use AMD amdflags=NO # Set to appropriate flags if you want to start NIS for a client #nis_clientflags="-s -S clc.gdeb.com,vfr" nis_clientflags="NO" Excerpts from /etc/rc.local --------------------------- amd /homes /var/amd/home_maps sleep 3 ypbind -s -S clc.gdeb.com,vfr /var/amd/home_maps ----------------------------- # *** NOTE: Only for use on /homes # *** This file was automatically generated -- DO NOT EDIT HERE *** # "fsinfo" run by deischen@fbsd.caen.gdeb.com on Mon Jul 1 12:43:38 1996 # /defaults type:=nfs eghk rhost:=vfr;rfs:=/export/home;sublink:=eghk ebst rhost:=vfr;rfs:=/export/home;sublink:=ebst ebhy rhost:=vfr;rfs:=/export/home;sublink:=ebhy ebjt rhost:=vfr;rfs:=/export/home;sublink:=ebjt egap rhost:=vfr;rfs:=/export/home;sublink:=egap ebsg rhost:=vfr;rfs:=/export/home;sublink:=ebsg egi1 rhost:=vfr;rfs:=/export/home;sublink:=egi1 backup rhost=vfr;rfs:=/export/home;sublink:=backup ebib rhost:=vfr;rfs:=/export/home;sublink:=ebib eaxk rhost:=vfr;rfs:=/export/home;sublink:=eaxk egzg rhost:=vfr;rfs:=/export/home;sublink:=egzg eahw rhost:=vfr;rfs:=/export/home;sublink:=eahw egza rhost:=vfr;rfs:=/export/home;sublink:=egza egy9 rhost:=vfr;rfs:=/export/home;sublink:=egy9 Last line of /etc/master.passwd -------------------------------- +::::::::: Last line of /etc/passwd -------------------------------- +:*:0:0:::