Subject: Re: ypbind
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Thierry LACOSTE <lacoste@univ-paris12.fr>
List: netbsd-help
Date: 12/14/2004 14:39:21
On Tuesday 14 December 2004 14:37, Manuel Bouyer wrote:
> On Tue, Dec 14, 2004 at 02:25:04PM +0100, Thierry LACOSTE wrote:
> > I thought that an UID found in the local password hides the same UID
> > on the server ...
>
> yes, but we're talking about groups here
>
> > ... if I get your point, when I have a local user "a" with UID 500
> > and an yp-distributed user "b" with UID 500 and when I login
> > with "a" on the client, I will get the yp distributed groups of "b" ?
>
> groups don't work by UID, but by login name.
> If you're login (say, lacoste) is in the local passwd, but in the NIS g=
roup
> map you have:
> mygroup:*:150:lacoste
> then this local user lacoste will also be in group mygroup, unless ther=
e's
> also a local group called mygroup, in which lacoste is not.
> So, as long as there's a NIS map in use for groups, the system needs to
> walk this map to know to which groups a user belongs, be it a local or =
NIS
> user.
That's very clear. Thanks a lot.
One more (maybe stupid) question: why are there such differences between
NIS clients on NetBSD, FreeBSD and Linux ?