From owner-freebsd-questions@FreeBSD.ORG Wed Mar 18 21:36:46 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC2FB10656C8 for ; Wed, 18 Mar 2009 21:36:46 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 993638FC13 for ; Wed, 18 Mar 2009 21:36:46 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-196-37-253.dynamic.qsc.de [92.196.37.253]) by mx02.qsc.de (Postfix) with ESMTP id 0DD0B19B7A49; Wed, 18 Mar 2009 22:36:44 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n2ILadlB001515; Wed, 18 Mar 2009 22:36:39 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 18 Mar 2009 22:36:38 +0100 From: Polytropon To: Bill Moran Message-Id: <20090318223638.4700f342.freebsd@edvax.de> In-Reply-To: <20090318122506.8829a34d.wmoran@potentialtech.com> References: <20090318161616.GA62837@gizmo.acns.msu.edu> <20090318122506.8829a34d.wmoran@potentialtech.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Jerry McAllister , Joe Chimento , freebsd-questions@freebsd.org Subject: Re: renaming user account? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2009 21:36:48 -0000 On Wed, 18 Mar 2009 12:25:06 -0400, Bill Moran wrote: > However, the canonical way to do this is using the pw command. pw will > sanity check all your changes to ensure you don't end up with a groups > file that doesn't match your master.password, etc. There *may* be one additional thing you would have to take care of manually: If you change the user's name, and still some of his files contain the old name (e. g. in paths where /home/oldname is used instead of ~ or $HOME), you still have to change this manually. You can use tools like the Midnight Commander, function Meta-?, to search files for the old user name (or use find + grep). Eventually, check system's mail aliases file, if you had this user setup to receive mail (e. g. from night jobs). > It's somewhat better suited for use in scripts than use by humans. :-) -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...