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 AM Dale <rdalek1...@gmail.com> wrote:
>> 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
>>
>> :-)  :-)
>>
>


Reply via email to