Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Oct 2007 18:57:27 +0300
From:      Manolis Kiagias <sonicy@otenet.gr>
To:        freebsd-questions@freebsd.org
Subject:   Re: Following directions doesn't seem to work: Adding users in NIS
Message-ID:  <47138DE7.80800@otenet.gr>
In-Reply-To: <20071015054707.GA34948@parts-unknown.org>
References:  <20071015054707.GA34948@parts-unknown.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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...



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