Subject: Re: ypbind
To: Thierry LACOSTE <lacoste@univ-paris12.fr>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 12/14/2004 14:37:43
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 group
map you have:
mygroup:*:150:lacoste
then this local user lacoste will also be in group mygroup, unless there'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.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
     NetBSD: 26 ans d'experience feront toujours la difference
--