From owner-freebsd-questions@FreeBSD.ORG Fri Jan 25 07:36:57 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 720A2128 for ; Fri, 25 Jan 2013 07:36:57 +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 1BF442D3 for ; Fri, 25 Jan 2013 07:36:56 +0000 (UTC) Received: from r56.edvax.de (port-92-195-8-191.dynamic.qsc.de [92.195.8.191]) by mx02.qsc.de (Postfix) with ESMTP id 1486827656; Fri, 25 Jan 2013 08:36:56 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r0P7awEi002126; Fri, 25 Jan 2013 08:36:58 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 25 Jan 2013 08:36:58 +0100 From: Polytropon To: Ralf Mardorf Subject: Re: Sharing a mail folder between Linux and FreeBSD Message-Id: <20130125083658.446cb519.freebsd@edvax.de> In-Reply-To: <1359096690.2155.29.camel@precise> References: <1358988080.4855.5.camel@precise> <5101B141.2090909@gmail.com> <1359076287.2155.18.camel@precise> <20130125100612.71a9630c@X220.ovitrap.com> <1359096690.2155.29.camel@precise> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2013 07:36:57 -0000 On Fri, 25 Jan 2013 07:51:30 +0100, Ralf Mardorf wrote: > Thank you Kevin, thank you Erich, > > On Thu, 2013-01-24 at 21:10 -0500, kpneal@pobox.com wrote: > > The correct way to edit the password file is with the "vipw" > > command. When you are done with your changes it rewrites the password > > file AND rebuilds the password database. > > > > I'm guessing you have a stale password database now. Use 'vipw' to > > make a trivial change and then save and exit out. > > Ok, I used mcedit to make the changes before and will try vipw now, > resp. ... That won't make any difference. :-) If your $EDITOR points to mcedit, _that_ editor will be used; afterwards pwd_mkdb will be called and the binary database files will be updated - and your changes will be fine. > On Fri, 2013-01-25 at 10:06 +0700, Erich Dollansky wrote: > > did you run something like? > > > > /usr/sbin/pwd_mkdb -d/etc /etc/master.passwd > > No, I didn't. I assume this is what vipw will do, so I can run this > instead of using vipw? Yes, because vipw can be seen as a chain "editor -> validate -> update database", involving the "lower level" programs that you can call yourself any time. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...