From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 18786 invoked from network); 8 Jun 1998 20:25:00 -0000 Received: from pongo.cv.nrao.edu (rmillner@192.33.115.98) by mail2.redhat.com with SMTP; 8 Jun 1998 20:25:00 -0000 Received: (from rmillner@localhost) by pongo.cv.nrao.edu (8.8.8/8.8.8/CV-2.2) id QAA19533; Mon, 8 Jun 1998 16:24:52 -0400 (EDT) Date: Mon, 8 Jun 1998 16:24:52 -0400 (EDT) Message-Id: <199806082024.QAA19533@pongo.cv.nrao.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: "Robert L. Millner" To: axp-list@redhat.com Subject: Re: NIS and Home directories In-Reply-To: Your message of Mon, June 8, 1998 11:53:00 -0400 References: X-Mailer: VM 6.35 under Emacs 20.2.1 "KB" == Keith Baker writes: Hello Keith et al, KB> How does one deal with home directories with NIS... are they remote KB> mounted? and if so, my NIS server is Intel based... What kind of KB> problems is this going to create when I use my alpha... As in, it We have a network which has Suns running Solaris, DEC's running Digital Unix, Linux intel, Linux alpha, and IBM RS6k boxes. All the NIS maps are served from a sun machine and every machine serves out filesystems. The accounts are known to the whole network and their home directories include the host name. The NIS maps can be served from any type of OS and used from any machine. There will be problems if your network includes SunOS 4 hosts which expect the NIS hosts map to transparently use DNS. These can be resolved with either Linux or a Sun as the server. For example, say my desktop machine is zathras (which happens to be Digital Unix). My home directory is really on /usr/users/rmillner on this machine. The aparent location for it is /home/zathras/rmillner which is the entry in the NIS password map. All hosts use that map. $ ypmatch rmillner passwd rmillner:a...a...:666:777::/home/zathras/rmillner:/usr/local/bin/bash $ ypmatch -k zathras auto.home zathras: zathras:/usr/users Our former (RedHat 4.2 and below) solution was to run native automount on all the systems and amd on the Linux boxes. We had our automount scheme long before we had Linux so it didn't make sense to change the whole way we handle our network to take care of a handful of Linux boxes. Whenver a change was made to the NIS served automount maps a change was made to its NIS served amd counterpart. $ ypmatch -k zathras amd.home zathras: rhost:=zathras;rfs:=/usr/users Now that autofs is viable on Linux boxes, we have pretty much done away with amd (yes, I know it has better syntax) and we have the same NIS automount maps working with all operating systems. My reccomendation if you need to make Linux work with the rest of your net is to run autofs/automount and just use the same NIS served maps. There will be issues to deal with if users have their own binaries and their login scripts but those are not importaint at the server/mount level. I have no problem logging into any kind of machine here and getting a sane environment with the same account so I can vouch for it being possible. If you use direct maps, then a work-around for autofs is to setup an auto.redirect program map which does an NIS query and use symlinks. The alpha detail is that it is possible to use autofs, you just need to re-compile the kernel (and turning on module support at least to see if it works) and install automount. There is no inherent problem with the NIS client/server that I have run into yet as long as you make the actual maps work correctly. You may run into NFS option compatibility issues. Good luck, Rob