Following directions doesn't seem to work: Adding users in NIS

David Benfell benfell at parts-unknown.org
Mon Oct 15 12:08:47 PDT 2007


On Mon, 15 Oct 2007 18:57:27 +0300, Manolis Kiagias wrote:
> >   
> The following comes from the handbook and works for me:
> 
> copy your master.passwd to /var/yp, i.e:
> 
> cp /etc/master.passwd /var/yp/master.passwd
> 
> Edit the copy of master.passwd and exclude all "irrelevant" accounts
> (root,servers and so on)
> 
> Then run:
> 
> ypinit -m your-nis.domain
> 
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 you forget to do this, the new user will not be able to login anywhere except 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.



-- 
David Benfell, LCP
benfell at parts-unknown.org
---
Resume available at http://www.parts-unknown.org/
NOTE: I sign all messages with GnuPG (0DD1D1E3).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20071015/b01b2392/attachment.pgp


More information about the freebsd-questions mailing list