Summary: NIS domains general question

From: Derek Gatherer (d.gatherer@vir.gla.ac.uk)
Date: Thu Jan 19 2006 - 11:15:28 EST


Thanks to:

Seref Tufan Sen
Ian Mortimer
Darryl Cook

I chose to make the Tru64 the master and the Linux box the
client. There was no slave.

1) On the Tru64 master, copy passwd, group, protocols, rpc, networks,
services and hosts from /etc to /var/yp/src
2) cd /var/yp
3) make passwd
4) make group
5) then man nis_manual_setup and follow the other instructions for
Masters, then for Clients (necessary because the master must also be
configured as a client). Note just follow these instructions on the
Tru64 master at the moment, don't do anything on the Linux client yet.
6) Now, on the Linux client (RHE4 in this
case): authconfig-gtk. This launches a GUI requiring a root login.
7) Tick "Enable NIS support" and then press "Configure NIS"
8) Enter the name of your NIS domain (you'll have already chosen this
as part of step 5.), and the name of your Tru64 master in the form
blah.me.co.uk
9) Click OK. Note that all that needs doing on the Linux client is
done via this GUI.
10) Get yp-tools from http://freshmeat.net/projects/yp-tools/
11) Install on master and client and run yptest on each. This should
tell you that everything is configured correctly.
12) For each user who will use NIS, make sure they have a home
directory on the Linux box, that they own it and have .bashrc and
.bash_profile or relevant equivalents. Do not give them a local
account on the Linux box.
13) Try logging on to the Linux box using the NIS acocunt. If system
refuses to log in or hangs, delete users from the Tru64 master's
local /etc/passwd file to force them to use NIS. Having a local
login on either or both of the Tru64 and Linux boxes and a NIS login
for the same user with the same password is quite a can of worms and
I failed to cope with configuring it (although I believe it can be
done if you have the patience). Best just to have a single NIS
account using the Tru64 /var/yp/src/passwd file.

Note: it may be that the default shell is different on the Linux
client than on the Tru64 master. If so, modify the entries in
/var/yp/src/passwd so that /bin/tcsh is replaced by /bin/bash (or
whatever is run on the Linux box).

14) Then start to think about setting up NFS so that once logged into
the Linux box via NIS, the users can see stuff on the Tru64 master if
required. There may be issues with some software installed on the
Tru64 box running on the Linux box due to the considerable
differences in architecture. That's another problem, so I'll go no
further as this post is just about setting up NIS.

Derek



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:50:28 EDT