Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Oct 2007 12:08:46 -0700
From:      David Benfell <benfell@parts-unknown.org>
To:        Manolis Kiagias <sonicy@otenet.gr>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Following directions doesn't seem to work: Adding users in NIS
Message-ID:  <20071015190846.GB86225@parts-unknown.org>
In-Reply-To: <47138DE7.80800@otenet.gr>
References:  <20071015054707.GA34948@parts-unknown.org> <47138DE7.80800@otenet.gr>

next in thread | previous in thread | raw e-mail | index | archive | help

--eAbsdosE1cNLO4uF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, 15 Oct 2007 18:57:27 +0300, Manolis Kiagias wrote:
> >  =20
> The following comes from the handbook and works for me:
>=20
> copy your master.passwd to /var/yp, i.e:
>=20
> cp /etc/master.passwd /var/yp/master.passwd
>=20
> Edit the copy of master.passwd and exclude all "irrelevant" accounts
> (root,servers and so on)
>=20
> Then run:
>=20
> ypinit -m your-nis.domain
>=20
So the message I'm getting here is that the procedure used to initially
set up NIS is the same as that used to update NIS.  Further down that page,
it claims that pw can be used to add users to an existing scheme:

<quote>
27.4.8 Important Things to Remember

There are still a couple of things that you will need to do differently now=
 that you are in an NIS environment.

    *

      Every time you wish to add a user to the lab, you must add it to the =
master NIS server only, and you must remember to rebuild the NIS maps. If y=
ou forget to do this, the new user will not be able to login anywhere excep=
t on the NIS master. For example, if we needed to add a new user jsmith to =
the lab, we would:

      # pw useradd jsmith
      # cd /var/yp
      # make test-domain

      You could also run adduser jsmith instead of pw useradd jsmith.
</quote>

> My real problem with nis is the fact the freebsd maps are not compatible
> with linux clients, and I can't seem to get the Makefile right...

Ouch!  I'm ultimately planning to add a Linux client.  In theory, I can get
by with just NFS for this particular application, but it would be better to
have NIS as well.



--=20
David Benfell, LCP
benfell@parts-unknown.org
---
Resume available at http://www.parts-unknown.org/
NOTE: I sign all messages with GnuPG (0DD1D1E3).

--eAbsdosE1cNLO4uF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFHE7q9Ud+dMw3R0eMRAooPAJ981xG3uqCFvud85JNkPF6aIH296QCglOvu
viPtLIPCDx2YqSDRU2ajWZM=
=PSPE
-----END PGP SIGNATURE-----

--eAbsdosE1cNLO4uF--



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