From owner-freebsd-questions@FreeBSD.ORG Mon Apr 28 09:22:33 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 7B00737B401 for ; Mon, 28 Apr 2003 09:22:33 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7306E43FA3 for ; Mon, 28 Apr 2003 09:22:31 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h3SGM1Ad089825 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 28 Apr 2003 17:22:01 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h3SGM0FQ089824; Mon, 28 Apr 2003 17:22:00 +0100 (BST) (envelope-from matthew) Date: Mon, 28 Apr 2003 17:22:00 +0100 From: Matthew Seaman To: =?iso-8859-1?Q?=C2ngelo?= Rodrigues Message-ID: <20030428162200.GC83968@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , =?iso-8859-1?Q?=C2ngelo?= Rodrigues , Dan Nelson , Eduardo Viruena Silva , freebsd-questions@freebsd.org References: <200304281535.38756.amr@fccn.pt> <200304281636.31048.amr@fccn.pt> <20030428154800.GL22259@dan.emsphone.com> <200304281706.37002.amr@fccn.pt> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Clx92ZfkiYIKRjnr" Content-Disposition: inline In-Reply-To: <200304281706.37002.amr@fccn.pt> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-38.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 16:22:33 -0000 --Clx92ZfkiYIKRjnr Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 time) > > > > > 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 server > > > 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. >=20 > 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. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --Clx92ZfkiYIKRjnr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+rVUodtESqEQa7a0RAi4vAJ4stxuZ9SLdEvaP4dNUVTbXjVvEtwCfT71q 5jaOewkdqcV77/Lu/dMCviY= =kKfv -----END PGP SIGNATURE----- --Clx92ZfkiYIKRjnr--