Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Robert L. Millner" <rmillner@nrao.edu>
To: axp-list@redhat.com
Subject: Re: NIS and Home directories
Date: Mon, 8 Jun 1998 16:24:52 -0400 (EDT)	[thread overview]
Message-ID: <199806082024.QAA19533@pongo.cv.nrao.edu> (raw)
In-Reply-To: Your message of Mon, June 8, 1998 11:53:00 -0400

"KB" == Keith Baker <toaster@cybercom.net> 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


  reply	other threads:[~1998-06-08 20:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-08 15:53 NIS and Home directories Keith Baker
1998-06-08 20:24 ` Robert L. Millner [this message]
1998-06-12 11:31 ` Alpha Mailing List
     [not found] <toaster@cybercom.net>
1998-06-09  3:31 ` Larry Zimmerman
1998-06-09 11:29   ` Paul Tomblin
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox