From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-204922-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 5A8D0158013
	for <garchives@archives.gentoo.org>; Thu, 31 Oct 2024 22:59:15 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 00BEBE08C0;
	Thu, 31 Oct 2024 22:59:10 +0000 (UTC)
Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 9E3FBE0805
	for <gentoo-user@lists.gentoo.org>; Thu, 31 Oct 2024 22:59:09 +0000 (UTC)
Received: by mail-oi1-x243.google.com with SMTP id 5614622812f47-3e6104701ffso940031b6e.0
        for <gentoo-user@lists.gentoo.org>; Thu, 31 Oct 2024 15:59:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1730415544; x=1731020344; darn=lists.gentoo.org;
        h=content-transfer-encoding:to:subject:message-id:date:from
         :in-reply-to:references:mime-version:from:to:cc:subject:date
         :message-id:reply-to;
        bh=b0/rStoQ6zNNZW1lp+TQ7EHw1raBDQEz06ZT/7SvH/Y=;
        b=J94eWYSC72U6oZX/vqS5AiKBa0YBB536iorPpYMDLWZf/vpsxX2C2kDEjjvJ2eh6UG
         2yRvgB/taXaMnFu956XL13ag/Reh5KaKsigtFLbgIvYjk6lwrLCk4BPNDXRDTwabmjfp
         3m2X9MRgy/OeU98mleyASHOl+leZBFVvOG/5+2FyAZtzZBXtknhLBv5yrsG47QsSK2Q5
         MK6l8OfY5YaR5y8+Y5mNlmIa7NU1oLgtoDvJyzpEyYR+GiyDQBr9cPYYIZ3n+j02Dd4Y
         P1SB/KFQU6qj4oWZJleq8jL/vWrJ8zLmxCQxEFz2nLPfnAMD8pZy0DCLgVAduYXGjMYk
         DOUg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1730415544; x=1731020344;
        h=content-transfer-encoding:to:subject:message-id:date:from
         :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
         :subject:date:message-id:reply-to;
        bh=b0/rStoQ6zNNZW1lp+TQ7EHw1raBDQEz06ZT/7SvH/Y=;
        b=tiYkKh6Hoxd0v/5QSoshKZpiiZaVznBUGYIchMoZkd1lIFluNj8C9Inboc4KXOtDnB
         t44dcgGGvgOiWSzQgouVTcCZwDprbktzxyvY9CzagoBVchz/zPTXUeGOXzjO7pqOlWSz
         bzHhj4e02MDs7UOtskmuyepE8LxSYzXSMlZsjGj40rit+FoSjogyIq6U0jkAYIqt6bVC
         ebd49UtuI6h51wgZGkdXOy0vizh+EvQcwpVZ2Kvp1DhJjh7+OpIrlMrrb3TvfR+C1L+G
         1EUD3z0bLfDKhQmrTo5HsuRwnQm1RhsOxa/w9LUmhMWSm1Yt7xqUpx0+NaMF15b52N2a
         p/eA==
X-Gm-Message-State: AOJu0YzlXiy1HMmOm0vT5IFIfsSfK9uSgkxniVf0R6PCsTsB7T9O3XXS
	JuPGDPbewrtslXbf48MVOdZW2QMd/v19F4nhLQ6RSVdHwWnHVu/hFdCf3AYkJ5UDfxrbM3xnY9H
	/VJzuGsa1qQbc1X1V+JnlKiQoElWSVCfr
X-Google-Smtp-Source: AGHT+IG7R5GWtGNY2FVtDTXaj97qoQmZzhqYsCNUZKjsojhmcVkfHm4GTvFkXHaGV4FoZxf4380okUR5xlgHKhF8Qx8=
X-Received: by 2002:a05:6808:3c44:b0:3e6:61f0:4797 with SMTP id
 5614622812f47-3e661f049ccmr3143618b6e.40.1730415543626; Thu, 31 Oct 2024
 15:59:03 -0700 (PDT)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
References: <CAGjDVnmSWk2iLMPjKPaX6wGsmB1Z4nXXAQo2t9Fy0=Z01S_73g@mail.gmail.com>
 <1c1bc2c0-b0b8-89c9-0b1a-d116d3596aa2@gmail.com> <CAGjDVnkNWM2fio8roRt5oFixNjppKHJ=b-5n_+4qY4Cgu2hpOg@mail.gmail.com>
 <bc80211e-be80-4be1-c5a2-2183a4e106b9@gmail.com>
In-Reply-To: <bc80211e-be80-4be1-c5a2-2183a4e106b9@gmail.com>
From: William McGonagle <wmcgonagle443@gmail.com>
Date: Thu, 31 Oct 2024 15:58:52 -0700
Message-ID: <CAGjDVnmpoJSAORQ1C4bgD1Yw2HeEuebD1Ydy+6Go4V_UdNgNaA@mail.gmail.com>
Subject: Re: [gentoo-user] Proper overlay permissions
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: b03655cf-7d84-4f25-9693-f4f999aae7ce
X-Archives-Hash: 7906f57ab1402b42d214b22ea1a17ab3

I got it working! i had to add my repo directory to the safe.directory
variable in my global git config. I also made myself the owner, and
made the group portage. I hope your greens grow beautifully!

On Thu, Oct 31, 2024 at 1:13=E2=80=AFPM Dale <rdalek1967@gmail.com> wrote:
>
> I just added a overlay, regular one, plus I have one of my own.  I added
> one right after my initial install, voyager.  Keep in mind, I run emerge
> and such as root.  It won't matter for me but if you plan to run emerge
> as a user, it will matter.  This is what mine looks like.
>
>
> root@Gentoo-1 / # ls /var/db/repos/
> total 24
> drwxr-xr-x   6 root    root    4096 Oct 30 12:29 .
> drwxr-xr-x   7 root    root    4096 Oct 30 12:38 ..
> drwxr-xr-x 177 portage portage 4096 Oct 26 01:11 gentoo
> drwxr-xr-x 144 root    root    4096 Oct 30 12:29 guru
> drwxr-xr-x   4 root    root    4096 Oct 30 12:37 localrepo
> drwxr-xr-x  23 root    root    4096 Oct 30 12:35 voyageur
> root@Gentoo-1 / #
>
>
> As you can see, the gentoo directory is portage:portage.  However, my
> local overlay and two regular overlays are root:root.  That is likely
> because I was root when I added them.  The benefit of portage:portage is
> that you can add a user to the portage group and it should work
> permissions wise.  If I added my user to the portage group and tried to
> run emerge, I'd likely get a permissions error with the settings above.
>
> Like I said, I'm no guru but if I'm wrong, odds are someone will chime
> in soon.  Of course, you could just try it and see if it works.  If not,
> change it back.  ;-)
>
> Dale
>
> :-)  :-)
>
> P. S.  My garden is about to get rain.  It's been at least a month since
> last one.  My greens will be so happy.  :-D
>
>
> William McGonagle wrote:
> > I appreciate the advice, I will try that. I just installed a few days
> > ago, and all my overlays are owned by root. I've seen a lot of
> > conflicting info on this, but I don't see how changing the permissions
> > like you said could cause any problems. Thanks again!
> >
> > On Thu, Oct 31, 2024 at 7:40=E2=80=AFAM Dale <rdalek1967@gmail.com> wro=
te:
> >> William McGonagle wrote:
> >>> I want to develop a local overlay on my system, sync it with git, and
> >>> be able to sign my commits with gpg. How can i set the permissions of
> >>> my overlay so that I can do this as a regular user securely? Would it
> >>> be fine to just make me the owner of that directory?
> >>>
> >>>
> >>
> >> I'm no expert at this but in the past, I set permissions this way.
> >> portage:portage and then add the user to the portage group.  When you
> >> first install Gentoo, that is the default permissions, last I looked
> >> anyway.  That should work.
> >>
> >> Hope that helps.
> >>
> >> Dale
> >>
> >> :-)  :-)
> >>
> >
>
>