From owner-freebsd-questions@FreeBSD.ORG Mon Apr 28 09:37:38 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02C8637B408 for ; Mon, 28 Apr 2003 09:37:38 -0700 (PDT) Received: from saturno.fccn.pt (saturno.fccn.pt [193.136.7.107]) by mx1.FreeBSD.org (Postfix) with SMTP id 14F7E43F3F for ; Mon, 28 Apr 2003 09:37:35 -0700 (PDT) (envelope-from amr@fccn.pt) Received: (qmail 60216 invoked from network); 28 Apr 2003 16:37:33 -0000 Received: from hyperion.fccn.pt (193.136.7.70) by saturno.fccn.pt with SMTP; 28 Apr 2003 16:37:33 -0000 Content-Type: text/plain; charset="iso-8859-1" From: =?iso-8859-1?q?=C2ngelo=20Rodrigues?= Organization: Fccn To: Matthew Seaman Date: Mon, 28 Apr 2003 17:37:30 +0000 User-Agent: KMail/1.4.3 References: <200304281535.38756.amr@fccn.pt> <200304281706.37002.amr@fccn.pt> <20030428162200.GC83968@happy-idiot-talk.infracaninophi> In-Reply-To: <20030428162200.GC83968@happy-idiot-talk.infracaninophi> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200304281737.30340.amr@fccn.pt> cc: Eduardo Viruena Silva cc: freebsd-questions@freebsd.org Subject: Re: Sincronize /etc/passwd and /etc/yp/passwd.master X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: amr@fccn.pt List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 16:37:38 -0000 On Monday 28 April 2003 16:22, Matthew Seaman wrote: > On Mon, Apr 28, 2003 at 05:06:36PM +0000, =C2ngelo Rodrigues wrote: > > On Monday 28 April 2003 15:48, Dan Nelson wrote: > > > In the last episode (Apr 28), ^Angelo Rodrigues said: > > > > On Monday 28 April 2003 15:16, Eduardo Viruena Silva wrote: > > > > > On Mon, 28 Apr 2003, [iso-8859-1] ^Angelo Rodrigues wrote: > > > > > > I'm trying to find an effective way to sincronize > > > > > > /etc/passwd.master and /etc/yp/passwd.master (at the same tim= e) > > > > > > without having to force all local users to run two commands, > > > > > > passwd and yppasswd. Any ideia? > > > > > > > > > > a) > > > > > a simbolic link: /var/yp/master.passwd -> /etc/master.passwd > > > > > > > > > > b) change your /var/yp/Makefile to take /etc/master.passwd > > > > > instead of /var/yp/master.passwd > > > > > > > > Hmmm...but this will force the same home directory between the se= rver > > > > and the client. > > > > > > You want the same password; why wouldn't you want the same homedir = and > > > shell also? All our NIS users have their homedir set to > > > /net/homedirmachine/home/username. > > > > But my server users are distributed betwen /home and /homeapp and > > this method will force the same thing in the clients. > > You can selectively override part of a NIS password database entry by > using NIS magic tokens in the local passwd file --- see passwd(5). > For instance, user 'fred' might have home directory /home/fred in the > NIS database, but you can override that in a client machine to > /users/fred by putting: > > +fred::::::::/users/fred: > > into /etc/master.passwd on the client. All of the other fields are > inherited from the NIS database. This could be a solution :) > > =09Cheers, > > =09Matthew --=20 =C2ngelo Rodrigues - amr@fccn.pt=20 FCCN - Funda=E7=E3o para a Computa=E7=E3o Cient=EDfica Nacional Av. Brasil, 101 1700-066 Lisboa - Portugal Tel: +351 218440100 Fax: +351 218472167 -----------------------------------------------------