* NIS and Home directories
@ 1998-06-08 15:53 Keith Baker
1998-06-08 20:24 ` Robert L. Millner
1998-06-12 11:31 ` Alpha Mailing List
0 siblings, 2 replies; 5+ messages in thread
From: Keith Baker @ 1998-06-08 15:53 UTC (permalink / raw)
To: axp-list
How does one deal with home directories with NIS... are they remote
mounted? and if so, my NIS server is Intel based... What kind of
problems is this going to create when I use my alpha... As in, it
mounts my home directory and uses the config files which may be
intel linux based... Sorry, this is only slightly an alpha based
question... This problems gets even worse with my Sun...
Keith
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: NIS and Home directories
1998-06-08 15:53 NIS and Home directories Keith Baker
@ 1998-06-08 20:24 ` Robert L. Millner
1998-06-12 11:31 ` Alpha Mailing List
1 sibling, 0 replies; 5+ messages in thread
From: Robert L. Millner @ 1998-06-08 20:24 UTC (permalink / raw)
To: axp-list
"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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: NIS and Home directories
[not found] <toaster@cybercom.net>
@ 1998-06-09 3:31 ` Larry Zimmerman
1998-06-09 11:29 ` Paul Tomblin
0 siblings, 1 reply; 5+ messages in thread
From: Larry Zimmerman @ 1998-06-09 3:31 UTC (permalink / raw)
To: axp-list
From: Keith Baker <toaster@cybercom.net> Mon, 8 Jun 1998
> How does one deal with home directories with NIS... are they remote
> mounted? and if so, my NIS server is Intel based... What kind of
> problems is this going to create when I use my alpha... As in, it
> mounts my home directory and uses the config files which may be
> intel linux based... Sorry, this is only slightly an alpha based
> question... This problems gets even worse with my Sun...
At work we have SunOS and Solaris, so my config file has stuff to
determine which OS the machine I'm logged into is running, then set
PATH, etc. accordingly.
To get this to work in your environment you need to find common commands
that tell you what OS and CPU you're logged into - e.g. mach,arch,uname
and set PATH, TERM, etc. accordingly.
Of course, if you're using different shells on different machines, then you
have more than 1 set of config files to deal with.
Larry Z.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: NIS and Home directories
1998-06-09 3:31 ` Larry Zimmerman
@ 1998-06-09 11:29 ` Paul Tomblin
0 siblings, 0 replies; 5+ messages in thread
From: Paul Tomblin @ 1998-06-09 11:29 UTC (permalink / raw)
To: axp-list
Quoting Larry Zimmerman (laz@walleye.gonefishing.sk.ca):
> At work we have SunOS and Solaris, so my config file has stuff to
> determine which OS the machine I'm logged into is running, then set
> PATH, etc. accordingly.
>
> To get this to work in your environment you need to find common commands
> that tell you what OS and CPU you're logged into - e.g. mach,arch,uname
> and set PATH, TERM, etc. accordingly.
I used to work in an environment with SunOS (on Sun3 and SPARC), Ultrix (on
Vax, MIPS and Alpha), AIX (on RT and RS/6000) and HP-SUX (on PA-RISC). We had
our home directories NFS mounted on all of those machines, and used YP (now
NIS) to serve the passwords. A shell script that tested for the existance of
an the output of mach, arch, uname, etc, did the machine specific set up, and
everybody sourced it out of their .cshrc or .profiles. Mostly, it was a case
of making sure you had machine specific binaries in your ~/bin.<machinetype>
directory, and the independant stuff in ~/bin. Same with our product
development tree - "make" would make the binaries into $TREE/bin.<machinetype>
while the shell scripts and perl would be in $TREE/bin.
--
Paul Tomblin, ptomblin@xcski.com.
"The day Microsoft makes something that doesn't suck is probably the day they
start making vacuum cleaners" - Ernst Jan Plugge
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: NIS and Home directories
1998-06-08 15:53 NIS and Home directories Keith Baker
1998-06-08 20:24 ` Robert L. Millner
@ 1998-06-12 11:31 ` Alpha Mailing List
1 sibling, 0 replies; 5+ messages in thread
From: Alpha Mailing List @ 1998-06-12 11:31 UTC (permalink / raw)
To: axp-list
On Mon, 8 Jun 1998, Keith Baker wrote:
> How does one deal with home directories with NIS... are they remote
> mounted? and if so, my NIS server is Intel based... What kind of
> problems is this going to create when I use my alpha... As in, it
> mounts my home directory and uses the config files which may be
> intel linux based... Sorry, this is only slightly an alpha based
> question... This problems gets even worse with my Sun...
> Keith
We use NFS + NIS in an environment of Solaris 2.6 (UltraSparc), HP-UX 10.2
(HP9000/800), Linux intel and Linux alpha.
The NFS Server are a Linux intel dedicated file server and a Solaris 2.6
sparc. Every machine is NFS client.
The Primary NIS server is the Solaris 2.6 sparc and the secondary is one
HP-UX 10.2 Every machine is NIS client. One curious think is that all
SUN clients want the Solaris 2.6 as its server, and all HP-UX or Linux
clients prefer the HP-UX (secondary) server. But this is not the problem.
We use netgroups to delimite the access of users to each machine, so in
/etc/passwd we put lines like this:
+@staff::::::
+@machine::::::
+@:*:::::
so we have to set /etc/nsswitch.conf to compat mode:
hosts: compat
group: files nis
hosts: files dns nis
netgroup: nis
...
This work nice on all machines EXCEPT in LINUX ALPHA!!!!!
with this solution, when a user executes a simple ls -l in the linux
alpha, the list can take up to 10 seconds to show 15 files!
It seems to be the compat line in the hosts: entry of /etc/nsswitch.conf
If i put an entry like:
hosts: files nis
The problem is solved but then every user in nis can acces to the machine.
So this is BIG problem. Besides, PAM does not work very well on linux
alpha. In fact, linux doesn't run very well in alpha!!!
Any comment?
----------------------------------------------------------------------------
Centre de Serveis Informàtics (CSI) e-mail: csi@els.url.es
Enginyeria La Salle Barcelona - Catalonia
Universitat Ramon Llull S P A I N
----------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1998-06-12 9:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-08 15:53 NIS and Home directories Keith Baker
1998-06-08 20:24 ` Robert L. Millner
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox