From owner-freebsd-questions Mon Jul 8 11:16:10 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA26927 for questions-outgoing; Mon, 8 Jul 1996 11:16:10 -0700 (PDT) Received: from garion.hq.ferg.com (pm1-09.wmbg.widomaker.com [204.17.220.109]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id LAA26905 for ; Mon, 8 Jul 1996 11:15:52 -0700 (PDT) Received: from localhost.hq.ferg.com (localhost.hq.ferg.com [127.0.0.1]) by garion.hq.ferg.com (8.6.12/8.6.12) with SMTP id OAA10863; Mon, 8 Jul 1996 14:16:04 -0400 Message-Id: <199607081816.OAA10863@garion.hq.ferg.com> X-Authentication-Warning: garion.hq.ferg.com: Host localhost.hq.ferg.com didn't use HELO protocol From: Branson Matheson To: "Daniel M. Eischen" cc: freebsd-questions@Freebsd.org Subject: Re: YP/NIS and AMD In-reply-to: Your message of "Mon, 08 Jul 1996 11:10:32 CDT." <9607081610.AA23712@iworks.InterWorks.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 08 Jul 1996 14:16:02 -0400 Sender: owner-questions@Freebsd.org X-Loop: FreeBSD.org Precedence: bulk -------- "Daniel M. Eischen" uttered with conviction: > > Hi, > > I'm trying to get both AMD and YP/NIS set up on a Fre eBSD > 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 hom e > directories (using auto mounted homes) on the Sun to be automount > ed. The Sun is running NIS+ in NIS compatibility mode. i have done this... lets look at things one at a time. > Excerpts from /etc/sysconfig ---------------------------- # Set to > the name of your host - this is pretty impor tant! > hostname="clc_rtr.clc.gdeb.com" > > # Set to the NIS domainname of your host, or NO if no ne > defaultdomainname="clc.gdeb.com" > > # Set to appropriate flags if you want to use AMD amdflags=NO Here you should be able to start amd. I use flags like this: amdflags="-r -n -y ferguson -l syslog /ump amd.ump" where -y sets your domain -l sets the type of logging and most importantly... amd.ump sets the file. DO NOT put a leading / on that filename and amd will use the yp version of the map. > #nis_clientflags="-s -S clc.gdeb.com,vfr" > nis_clientflags="NO" You should be able to start yp here. If you are having to comment it out ... that is a YP issue that I have not run into... I tend to use -ypsetme so that I am hard bound to a specific server. I do that because generally the NFS server is the YP server and if they loose the primary YP server, they have lost either home or /usr/local/ in any case. > /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 ebj Interesting map.. I do somthing a bit more falmboyant but this reads a bit easier. I also use somthing called /ump which is Universal Mount Point which was introduced at NASA Langely. (http://ice-www.larc.nasa.gov/LCUC/papers/ump.ps) defaults opts:=rw,soft,time0=10,retrans=5 # Defaults for HQ Home Directories hq type:=auto;fs:=${map};pref:=${key}/ # Home Directories for HQ hq/home type:=auto;fs:=${map};pref:=${key}/ # Defaults for garion # Terry Chapman hq/home/terry \ host==garion;type:=link;fs=/home/terry || \ host!=garion;type:=nfs;rhost:=garion;rfs:=/home/terry;fs:=${autodir}/${key} # Branson Matheson hq/home/branson \ host==garion;type:=link;fs=/home/branson || \ host!=garion;type:=nfs;rhost:=garion;rfs:=/home/branson;fs:=${autodir}/${key} # /usr/local hq/local \ arch==hp9000s800;type:=nfs;rhost:=polgara;rfs:=/usr/local;fs:=${autodir}/${key} || \ arch==i386;type:=nfs;rhost:=garion;rfs:=/usr/local;fs:=${autodir}/${key} I have some scripts that can convert this to a ypmap if you are interested and also allow you to keep this in a hierarchial format and compile the final amd.ump. -branson ============================================================================= Branson Matheson | Ferguson Enterprises | If Pete and Repeat were System Administrator | W: (804) 874-7795 | sittin on a fence and Pete Unix, Perl, WWW | branson@widomaker.com | fell off, who is left?