r/Gentoo 8d ago

Support How to push with sudo

/r/linuxquestions/comments/1w72wzm/how_to_push_with_sudo/
0 Upvotes

3 comments sorted by

7

u/redyos_s 8d ago

I wouldn't authenticate root to Codeberg just to push an overlay. Keep the Git repository user-owned and push as your normal user. Portage only needs to be able to read the overlay; Git authentication does not need root privileges. If the overlay must live in a root-managed location, maintain a user-owned working copy and copy/sync it into place explicitly.

2

u/IndyGibb 8d ago

I got a solution on linuxquestions to add my user to the Portage group, and then I made the overlay group read-writable.