From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Derek Gatherer Newsgroups: gmane.os.tru64.managers Subject: Summary: NIS domains general question Date: Thu, 19 Jan 2006 16:15:28 +0000 Message-ID: <6.2.3.4.1.20060119154208.02acf530@lenzie.gla.ac.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii X-Trace: sea.gmane.org 1137687459 868 80.91.229.2 (19 Jan 2006 16:17:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Jan 2006 16:17:39 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Jan 19 17:17:33 2006 Return-path: Envelope-to: gotm-tru64-unix-managers@gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1EzcTR-0007RF-Qm for gotm-tru64-unix-managers@gmane.org; Thu, 19 Jan 2006 17:17:23 +0100 Original-Received: (qmail 336 invoked by uid 49509); 19 Jan 2006 16:17:03 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 32748 invoked from network); 19 Jan 2006 16:17:03 -0000 Original-Received: from emroute4.ornl.gov (160.91.86.27) by sws1.ornl.gov with SMTP; 19 Jan 2006 16:17:03 -0000 Original-Received: from emroute4.ornl.gov (localhost [127.0.0.1]) by emroute4.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0ITC002KNL8EPD@emroute4.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 19 Jan 2006 11:17:02 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute4.ornl.gov by emroute4.ornl.gov (PMDF V6.2-1x9 #31038) id <0ITC00502L81AD@emroute4.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 19 Jan 2006 11:17:02 -0500 (EST) Original-Received: from hillhead.cent.gla.ac.uk (hillhead.cent.gla.ac.uk [130.209.16.101]) by emroute4.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0ITC003HXL80AZ@emroute4.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 19 Jan 2006 11:16:49 -0500 (EST) Original-Received: from lenzie.cent.gla.ac.uk ([130.209.16.18]) by hillhead.cent.gla.ac.uk with esmtp (Exim 4.10) id 1EzcSt-0005HQ-00 for tru64-unix-managers@ornl.gov; Thu, 19 Jan 2006 16:16:47 +0000 Original-Received: from postdoc9.vir.gla.ac.uk ([130.209.134.155] helo=BEDE.vir.gla.ac.uk) by lenzie.cent.gla.ac.uk with esmtp (Exim 4.50) id 1EzcSt-0005Dr-BG for tru64-unix-managers@ornl.gov; Thu, 19 Jan 2006 16:16:47 +0000 Original-To: tru64-unix-managers@ornl.gov X-Envelope-from: d.gatherer@vir.gla.ac.uk X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on spam2.ornl.gov X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.0 Xref: news.gmane.org gmane.os.tru64.managers:8736 Archived-At: 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