From owner-freebsd-questions@FreeBSD.ORG Fri Jan 25 07:40:19 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B83A91EE for ; Fri, 25 Jan 2013 07:40:19 +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 81D1B2F4 for ; Fri, 25 Jan 2013 07:40:19 +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 A40D627784; Fri, 25 Jan 2013 08:40:18 +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 r0P7eLi3002132; Fri, 25 Jan 2013 08:40:21 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 25 Jan 2013 08:40:21 +0100 From: Polytropon To: Ralf Mardorf Subject: Re: Sharing a mail folder between Linux and FreeBSD Message-Id: <20130125084021.04e96f8f.freebsd@edvax.de> In-Reply-To: <1359099175.2155.42.camel@precise> References: <1358988080.4855.5.camel@precise> <5101B141.2090909@gmail.com> <1359076287.2155.18.camel@precise> <20130125080311.d794da70.freebsd@edvax.de> <1359099175.2155.42.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:40:19 -0000 On Fri, 25 Jan 2013 08:32:55 +0100, Ralf Mardorf wrote: > On Fri, 2013-01-25 at 08:03 +0100, Polytropon wrote: > > UIDs and GIDs should match here. All files belonging to rocketmouse > > should be 1000:1000 _and_ the name "rocketmouse" should be > > associated to those numerical values (see files mentioned > > above). > > Yes, but because I missed to update the database X login asked for 1001. Correct - several programs query that database instead of the plain text files. > > But pwd.db and spwd.db (the password databases with encrypted > > content) don't reflect those informations! > > So '# /usr/sbin/pwd_mkdb -d/etc /etc/master.passwd' is ok, regarding > to ... Yes, use that command. > > "man pwd_mkdb" and rebuild > > the databases. > > -c and -u switches could be used too, but aren't needed, since the > entries are correct. It's not needed to make things that complicated (to selectively deal with entries, for example). The simple thing of # cd /etc # pkd_mkdb /etc/master.passwd should do the trick here. > > If you would have used the "vipw" command to make the change > > to the passwd (plain text) files, it would have called pwd_mkdb > > after the change. But don't worry: Knowing those "low level hacks" > > can be helpful in some worst-case scenario. :-) > > And then I don't need to use vi, if the default text editor still should > be vi. The $EDITOR variable will be honored, and as long as the program is available (and the terminal capabilities apply), it will work as expected. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...