Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Sep 2021 14:01:32 -0700
From:      Pete Wright <pete@nomadlogic.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: what userid do you update system sources under?
Message-ID:  <ca8626ff-4df4-1e18-2e22-eba0de22e02e@nomadlogic.org>
In-Reply-To: <YVMiaWBxb/dbAPzX@ceres.zyxst.net>
References:  <YVMiaWBxb/dbAPzX@ceres.zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help


On 9/28/21 7:10 AM, tech-lists wrote:
> Hi,
>
> When git updates your system sources, are you updating with a specific
> git user, or do you just use root, and if *automatically* refreshing your
> tree (like in a cronjob), again as git user or root? Or some other user?

for my development systems i have a git checkout named "freebsd", i then 
create a sym-link from the checkout to /usr/src/.  this allows me to 
update my source tree without elevated permissions, and for my uses is 
perfectly acceptable (single user, development systems).  in a shared 
environment you may want to have a "bot" account own the checkout, but 
then ensure your users are all part of the group that the bot account is 
part of.


when building i also make sure i own the approprite directory under 
/usr/obj.  in my case it is /usr/obj/usr/home/pete/git/freebsd. this 
allows me to build sources as my normal user, only needing elevated 
privs for the installation steps.

-pete

-- 
Pete Wright
pete@nomadlogic.org
@nomadlogicLA




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ca8626ff-4df4-1e18-2e22-eba0de22e02e>