From owner-freebsd-questions@FreeBSD.ORG Mon Apr 28 10:39:56 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 0926A37B401 for ; Mon, 28 Apr 2003 10:39:56 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 322C843FCB for ; Mon, 28 Apr 2003 10:39:53 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h3SHdis4049097; Mon, 28 Apr 2003 12:39:44 -0500 (CDT) (envelope-from dan) Date: Mon, 28 Apr 2003 12:39:44 -0500 From: Dan Nelson To: ^Angelo Rodrigues Message-ID: <20030428173944.GM22259@dan.emsphone.com> References: <200304281535.38756.amr@fccn.pt> <200304281706.37002.amr@fccn.pt> <20030428162200.GC83968@happy-idiot-talk.infracaninophi> <200304281737.30340.amr@fccn.pt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200304281737.30340.amr@fccn.pt> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i 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 17:39:56 -0000 In the last episode (Apr 28), ^Angelo Rodrigues said: > On Monday 28 April 2003 16:22, Matthew Seaman wrote: > > On Mon, Apr 28, 2003 at 05:06:36PM +0000, ^Angelo Rodrigues wrote: > > > On Monday 28 April 2003 15:48, Dan Nelson wrote: > > > > 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 :) Standardizing the name of the homedir would make your job a lot easier. Can you make symlinks in /home so that every user whose homedir is in /homeapp can use /home/user also? Then the user's home is "/home/user" no matter what machine he logs into. -- Dan Nelson dnelson@allantgroup.com