From owner-freebsd-questions@FreeBSD.ORG Thu Jan 24 22:10:16 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 4673EF10 for ; Thu, 24 Jan 2013 22:10:16 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-ia0-x235.google.com (ia-in-x0235.1e100.net [IPv6:2607:f8b0:4001:c02::235]) by mx1.freebsd.org (Postfix) with ESMTP id 1C35A9FB for ; Thu, 24 Jan 2013 22:10:16 +0000 (UTC) Received: by mail-ia0-f181.google.com with SMTP id k25so5419981iah.40 for ; Thu, 24 Jan 2013 14:10:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=OuSH/LYaErgL8X6N8pD94mE0xXvl+6CTmpShqmL+ujw=; b=cuGF3FhW7b8Aijd2TsrtGK57UCGg6NZ+Rt+Dd/4LCNZNAQ5tCoErw5KqHVN1GxAzPg uo3gnospnmtRfccRZOkNeQ918DlVI6O2b5cB/Svj6a1fXdpwIKVOmzHkD9Eyz3A0SnqK ZcUCFSo/WsvxAbKA+8khzwWforPLsao4oZzQC10l3EhVRLzp2MF4ej6mkzjy1U5pWvQZ Oo7XShQJel6ec3Hj/6jYbIkFwfogBTFKV6y+TplF36a0ASkedG9D5etBdQ6WT4MQRasS ORFFik/tjB5o9C7ThRihbAQIcFwZ2B9witVj0g6t1Q4pzwXZ7r/LURcfQ2RsyibQlzgu 8Wwg== X-Received: by 10.50.91.230 with SMTP id ch6mr2540417igb.92.1359065415426; Thu, 24 Jan 2013 14:10:15 -0800 (PST) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id ui8sm2122407igb.14.2013.01.24.14.10.13 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jan 2013 14:10:14 -0800 (PST) Message-ID: <5101B141.2090909@gmail.com> Date: Thu, 24 Jan 2013 16:10:09 -0600 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Fwd: Re: Sharing a mail folder between Linux and FreeBSD References: <1358988080.4855.5.camel@precise> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2013 22:10:16 -0000 On 1/24/2013 3:26 AM, Ralf Mardorf wrote: > I was surpriesed, when Evolution from Linux had no permissions anymore > to access the mail folder, after > drwxrwx--- rocketmouse wheel was stable for FreeBSD > > I wasn't aware, that even between Linux only, the folders for mount > points share the same permissions, once the partition is mounted, since > my Linux users usually share the same uid. I tested it some minutes ago. > > However, I add a group freebsd (1001) to a Linux and chown/chmod most of > the pass without -R option and for the mail directory I used the -R > option, now everything _should_ work ... > > $ ls -hAl /mnt > drwxrwx--- 21 1000 rocketmouse 4.0k Oct 28 19:11 archlinux > > but at the end of the pass I noticed this: > > $ ls -hAl /mnt/archlinux/home/spinymouse/.local/share/evolution/mail > total 28 > drwxrwx--- 3 1000 rocketmouse 4.0k Jan 24 02:37 > 1323712251.1853.2@archlinux > drwxrwx--- 3 1000 rocketmouse 4.0k Jan 24 02:13 1353406324.3645.4@q > drwxrwx--- 3 1000 rocketmouse 4.0k Jan 24 02:13 1353606434.360.4@q > drwx------ 2 1000 1000 4.0k Jan 24 02:37 > 1358783158.2173.1@precise > drwxrwx--- 17 1000 rocketmouse 4.0k Jan 24 02:37 local > drwxrwx--- 4 1000 rocketmouse 4.0k Jan 24 02:10 trash > drwxrwx--- 2 1000 rocketmouse 4.0k Jan 24 02:37 vfolder > > I suspect I write-accessed /1358783158.2173.1@precise with a Linux that > has no group 1001? > > I'll add a group or user 1001 to all Linux and I'll add a user or group > 1000 to FreeBSD. > > If I've done that, could I expect still any issues? > > Regards > Ralf > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" If you're primarily using Linux and toying with FreeBSD, I'd just change your uid and gid to match what you use on linux. If your Linux uid is 1000 and your FreeBSD uid is 1001 you'll always have a problem. Your best bet it to open up and edit /etc/passwd, /etc/master.passwd, and /etc/group and change all the 1001's to 1000. You should be safe since the uid is so high. Some programs expect certain things to be a certain uid, but you should be safe with 1000. You'll have to remember to chown all the files. Files are stored by the number, the name's for human. I assume running these two commands should do it. find / -uid 1001 -exec chown 1000 '{}' \; find / -gid 1001 -exec chown :1000 '{}' \;