From owner-freebsd-questions@freebsd.org Tue Sep 28 21:01:50 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F04156AC285 for ; Tue, 28 Sep 2021 21:01:50 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [66.165.241.226]) (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 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.nomadlogic.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HJsPn48dJz4sn6 for ; Tue, 28 Sep 2021 21:01:49 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.160] (cpe-24-24-163-126.socal.res.rr.com [24.24.163.126]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 5c1b282a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 28 Sep 2021 21:01:34 +0000 (UTC) Subject: Re: what userid do you update system sources under? To: freebsd-questions@freebsd.org References: From: Pete Wright Message-ID: Date: Tue, 28 Sep 2021 14:01:32 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4HJsPn48dJz4sn6 X-Spamd-Bar: -- X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[nomadlogic.org:s=04242021]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[nomadlogic.org:+]; DMARC_POLICY_ALLOW(-0.50)[nomadlogic.org,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:29802, ipnet:66.165.240.0/22, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2021 21:01:51 -0000 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