Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2002 10:28:15 +0100
From:      Scott Mitchell <scott.mitchell@mail.com>
To:        Eric Lam <ecrim@ecrim.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Basic NIS/YP Help
Message-ID:  <20020510102815.B14354@fishballoon.dyndns.org>
In-Reply-To: <000001c1f7db$25ec0d90$31b2b2d1@gondor>; from ecrim@ecrim.net on Thu, May 09, 2002 at 09:28:32PM -0700
References:  <000001c1f7db$25ec0d90$31b2b2d1@gondor>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 09, 2002 at 09:28:32PM -0700, Eric Lam wrote:
> I will have a box setup that will be both a NIS/YP server and client.  
> 
> 1.)  To setup this box as both server/client, I perform both steps
> pertaining to server and client in the Handbook?  Like, I would do all
> that ypinit and adding all that "+:::::::::" to my /etc/master.passwd?

Yes.

Be aware that sharing passwords over NIS (especially shadow passwords) can
be a real PITA if you have any non-BSD clients -- everyone does shadow
passwords differently.  The problems and solutions have been covered at
length on this before.

> 2.)  How would I add a user so the user can logon to the server/client
> and to other client-only boxes?  Like, is there a easy way of adding the
> user, having the user's /etc/master.passwd entry "exported" to
> /var/yp/master.passwd?  

vipw -d /var/yp

Then run 'make' in /var/yp to push out the updates.

> 3.)  Because this box is a server/client, I would point this particular
> box's client to localhost, correct?

I have this in my rc.conf:

nis_client_flags="-S ${nisdomainname},`hostname`"

which forces the NIS client to bind only to the server on the same machine,
in the same domain.  I believe this is the recommended way of doing things
when you have master & slave servers, so that the clients on the servers
don't accidentally get bound to the wrong server.  It probably doesn't hurt
in a single-server setup either.

HTH,

	Scott

-- 
===========================================================================
Scott Mitchell          | PGP Key ID | "Eagles may soar, but weasels
Cambridge, England      | 0x54B171B9 |  don't get sucked into jet engines"
scott.mitchell@mail.com | 0xAA775B8B |      -- Anon

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020510102815.B14354>