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

Manolis Kiagias sonicy at
Mon Oct 15 08:57:31 PDT 2007

David Benfell wrote:
> Hello all,
> Where are there working directions for adding users under NIS?
> The instructions in the FreeBSD handbook don't seem to result in
> added users being propagated out to slaves.  And the failure is
> silent, so I have no idea what I'm really supposed to be doing
> to make this work.
> All I know is that added users end up in the main /etc/passwd
> and /etc/master.passwd; the -Y option to pw seems to change nothing
> other than to consume time "updating" (but I don't know what, since
> the changes I'm looking for don't appear) various maps and "pushing"
> the maps.
> And, having evidently done the *wrong* thing, how do I fix the
> added users so they now appear in NIS?
> Thanks!
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

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...

More information about the freebsd-questions mailing list