From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4A0E21393F1 for ; Tue, 15 Sep 2015 20:25:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 925CD21C01C; Tue, 15 Sep 2015 20:25:37 +0000 (UTC) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6A656E081D for ; Tue, 15 Sep 2015 20:25:36 +0000 (UTC) Received: by wicfx3 with SMTP id fx3so43102854wic.0 for ; Tue, 15 Sep 2015 13:25:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=z3uc8PkDljVCK/DxGtf3/rq7HCQy8IqMGuMSN7ti2/c=; b=S9Qcx9HBd9yyV1zRG+XlKPUCtqV3g+4Es9k/nletPFW6nAwPmHjfqgc9asoo1q25kn eCt354LEOSJCJiWkNtawkHoQ9uSumUT3ITrkumrKLMJ/iQCu/WUZG1t50eCxkmevHzpM Y6iw9AxxRajskaVycj8sDQZCvGIKkjLjGruio/a6dKW1LxFp9n3Dt2Nr2IatoKwS3naJ t9ggGW1wJJMkmIkWYxVTLQ2qFbqks8jdkqyu3iWfYNHvPQBnyFMnXxo6J6d9ZWtyVxSa 5msFJRpW6tf1d63cJRaqXhB9udHnm7y2UvQdAZjlchSa+LC+4+h7Q0RujqsWjvg/FNaX urtw== X-Received: by 10.194.63.5 with SMTP id c5mr13067127wjs.127.1442348735095; Tue, 15 Sep 2015 13:25:35 -0700 (PDT) Received: from [172.20.0.41] ([105.210.58.210]) by smtp.googlemail.com with ESMTPSA id jc9sm794334wic.6.2015.09.15.13.25.33 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Sep 2015 13:25:34 -0700 (PDT) Subject: Re: [gentoo-user] portage directory ownerships? To: gentoo-user@lists.gentoo.org References: From: Alan McKinnon Message-ID: <55F87EAB.20101@gmail.com> Date: Tue, 15 Sep 2015 22:25:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Archives-Salt: 6b8b11d2-f14b-438b-b777-85eaeb37dd26 X-Archives-Hash: d41cbc69612243199e3165724fb41d74 On 15/09/2015 22:09, james wrote: > Hello, > > So looking at /etc/portage/repos.conf, it seems root.root owns these > files; shouldn't it be portage.portage? and /usr/portage > > That got me thinking. Everywhere that portage operates or owns > things, should the ownership not be portage.portage > and what would the typical permissions be? Here, all of /etc/portage is root:root The tree and all overlays are portage:portage You can make a local overlay owned by user you want, stuff you hack away at yourself should probably be james:james or james:users Typically, permissions in /etc/portage are the usual 755 for dirs and 644 for files I set overlays and the tree to be 2775 for dirs and 664 for files > > Is there a master list I can look at? Surely root not own all > these dirs, like /usr/portage/* ? My /usr/portage is root.root > and 755 on permissions, is that right? Permissions should be what YOU need them to be on your computer. There's a default, it's what portage makes them when you install stuff > > If so, why? Only root should change the master config files in /etc, just like in all other apps IIRC emerge can drop privs to a user account, if that user is portage then portage must own the files > > In my /usr/local/portage and it's subdirs where I hack on many > ebuild, portage.portage owns everything.....? Make your life easy, chaown that stuff to james > Curious, and I cannot remember ever looking at this.... > > > James > > > > -- Alan McKinnon alan.mckinnon@gmail.com