[tech] [[email protected]: [wheel] evil, evil irix nis]

Nick Bannon nick at ucc.gu.uwa.edu.au
Wed May 1 09:46:42 WST 2002


(Forwarding to tech at ucc - it's not necessary to restrict this to wheel)

Nick.

----- Forwarded message from Adrian Chadd <adrian at ucc.gu.uwa.edu.au> -----

Date: Tue, 30 Apr 2002 21:06:44 +0800
From: Adrian Chadd <adrian at ucc.gu.uwa.edu.au>
To: wheel at ucc.gu.uwa.edu.au
User-Agent: Mutt/1.3.23i
Subject: [wheel] evil, evil irix nis


Hi all,

I've managed to get NIS working on scarlet and azure.

* setup NIS on azure as a client. Noticed it didn't ask for a server.
  Nothing worked. This involved chkconfig yp on; ypinit -c -d whalefish .

* snoop'ed on azure. Found that it was actually doing broadcast/multicast
  NIS lookups. Hmm.

* did lots of google searches. Didn't find anything useful.

* wondered what ypservers in /etc/nsswitch.conf was for. Thought it was
  a list of nis servers. Realised that nsswitch is a map between files and
  where to get them from, so ..

* did man ypservers . Discovered the magical file in /var/yp/bindings/domain/.
  Created /var/yp/bindings/whalefish/ypservers (it existed on scarlet),
  added morwong/mooneye to it.

* added mooneye/morwong to /etc/hosts - just to help NIS along a bit

* added ypservers     files to the end of nsswitch.conf

* discovered everything magically worked

* (I think I did a ypset in there on scarlet for testing, but not on azure).

* update /etc/passwd and /etc/group with the NIS magic, removing the user
  accounts on azure

* rebooted, life was nice.


I have also installed a bunch of freeware stuff from freeware.sgi.com on
scarlet. bash, zsh, tcsh are on there w/ the relevant symlinks into /bin
(this stopped me from logging in. oops :-)

In other news - azure is now running 6.5.15 . Mustang and I had limited
love when we tried installing 6.5.13 off CD w/ the development foundation
and development libraries - inst was complaining about mismatched software
versions. When I installed the 6.5.15 upgrade it complained that a bunch
of prerequisites (the dev stuff) wasn't installed for it to upgrade.
So, I added the two cds in before typing 'go' .. and inst went and installed
it all for me. Nifty. This is something nice to remember when it comes
time to reinstall azure.





Adrian


----- End forwarded message -----
----- Forwarded message from Adrian Chadd <adrian at ucc.gu.uwa.edu.au> -----

Date: Tue, 30 Apr 2002 21:08:43 +0800
From: Adrian Chadd <adrian at ucc.gu.uwa.edu.au>
To: wheel at ucc.gu.uwa.edu.au
Subject: Re: [wheel] evil, evil irix nis
User-Agent: Mutt/1.3.23i

On Tue, Apr 30, 2002, Adrian Chadd wrote:

> * added mooneye/morwong to /etc/hosts - just to help NIS along a bit
> 
> * added ypservers     files to the end of nsswitch.conf
> 
> * discovered everything magically worked

* run nsadmin, and type restart to kick-start nsd to pick up the changes.



adrian

----- End forwarded message -----
----- Forwarded message from Adrian Chadd <adrian at ucc.gu.uwa.edu.au> -----

Date: Tue, 30 Apr 2002 21:18:02 +0800
From: Adrian Chadd <adrian at ucc.gu.uwa.edu.au>
To: wheel at ucc.gu.uwa.edu.au
User-Agent: Mutt/1.3.23i
Subject: [wheel] passwd map madness


hi all,

the shells in the nis passwd map were ... evil.
Some were /bin/ .. some were /usr/bin/ .. which I picked up
when installing azure.

I've gone and moved all the shells (bar rc - sorry luyer!)
to be prefixed with /bin/ .

I backed up the passwd map beforehand (passwd.before.adrian) .
If anyone can see any glaring problems with this, please tell me.
If you find that a machine is missing /bin/${shell} for some
reason, please put in the symlink.





Adrian

----- End forwarded message -----
----- Forwarded message from David Luyer <david at luyer.net> -----

From: "David Luyer" <david at luyer.net>
To: "'Adrian Chadd'" <adrian at ucc.gu.uwa.edu.au>, <wheel at ucc.gu.uwa.edu.au>
Subject: RE: [wheel] evil, evil irix nis
Date: Tue, 30 Apr 2002 23:45:33 +1000
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000


> * snoop'ed on azure. Found that it was actually doing 
> broadcast/multicast
>   NIS lookups. Hmm.

> * did man ypservers . Discovered the magical file in 
> /var/yp/bindings/domain/.
>   Created /var/yp/bindings/whalefish/ypservers (it existed on 
> scarlet),
>   added morwong/mooneye to it.

Note this is exactly as per Solaris.  Not that it's particularly
well documented there either :-)

On Solaris you also need /etc/hosts entries for all YP servers.

David.


----- End forwarded message -----

-- 
   Nick Bannon   | "I made this letter longer than usual because
nick-sig at rcpt.to | I lack the time to make it shorter." - Pascal


More information about the tech mailing list