From owner-freebsd-questions@FreeBSD.ORG Tue Jan 22 05:32:35 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 EAFDDEFC for ; Tue, 22 Jan 2013 05:32:35 +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 B0B29384 for ; Tue, 22 Jan 2013 05:32:35 +0000 (UTC) Received: from r56.edvax.de (port-92-195-45-17.dynamic.qsc.de [92.195.45.17]) by mx02.qsc.de (Postfix) with ESMTP id EE35724935; Tue, 22 Jan 2013 06:32:27 +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 r0M5WU1a001996; Tue, 22 Jan 2013 06:32:30 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 22 Jan 2013 06:32:30 +0100 From: Polytropon To: Ralf Mardorf Subject: Re: Sharing a mail folder between Linux and FreeBSD Message-Id: <20130122063230.c0d65521.freebsd@edvax.de> In-Reply-To: <1358818271.3045.66.camel@precise> References: <1358811229.2031.60.camel@precise> <20130122073125.459ad795@X220.ovitrap.com> <1358816032.3045.53.camel@precise> <20130122081804.5569d38c@X220.ovitrap.com> <1358818271.3045.66.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: Tue, 22 Jan 2013 05:32:36 -0000 On Tue, 22 Jan 2013 02:31:11 +0100, Ralf Mardorf wrote: > On Tue, 2013-01-22 at 08:18 +0700, Erich Dollansky wrote: > > > I guess it would be possible to change the id for the existing FreeBSD > > > user and then to chown /home/user_name to fit to 1000? > > > > Of course, this would work. But then all existing files of the existing > > FreeBSD would be without owner. > > The current user is: rocketmouse > The uid is : 1001 > > Isn't it possible to change the uid to 1000? > This would cause that the owner wouldn't be rocketmouse anymore, but > still 1001. I then could run chown -R for /home/rocketmouse to switch > from 1001 to back to rocketmouse = new uid 1000. You would need to do two changes: First in the password database, with chsh (tidy way) or by editing the /etc/passwd, /etc/master.passwd and /etc/group files plus rebuilding the database with pwd_mkdb (untidy way) to assign rocketmouse = 1000 on FreeBSD. Then you would also have to "promote" this change to the file system, as all the files still belong to a user with UID 1001. Use chown -R with the new numerical value of 1000. Result: Your user would have the UID 1000 on all systems, so all the "low level functions" would behave similarly. > Or another idea would be to create a new user with the uid 1000 and then > to add rocketmouse to the group of this user. I guess this is what you > already recommended. Yes, that would also work. You only have to make sure that group permissions are valid, and the "access permission" is provided in /etc/group properly. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...