From owner-freebsd-questions Sat Jun 16 17:19:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 964DC37B409 for ; Sat, 16 Jun 2001 17:19:21 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (patr530-a186.otenet.gr [212.205.215.186]) by mailsrv.otenet.gr (8.11.1/8.11.1) with ESMTP id f5H0Iqp02101; Sun, 17 Jun 2001 03:18:58 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.3/8.11.3) id f5H0IQE02326; Sun, 17 Jun 2001 03:18:26 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 17 Jun 2001 03:18:23 +0300 From: Giorgos Keramidas To: j mckitrick Cc: freebsd-questions@FreeBSD.ORG Subject: Re: best permissions for local CVS tree? Message-ID: <20010617031821.A2091@hades.hell.gr> References: <20010616221534.A93020@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010616221534.A93020@dogma.freebsd-uk.eu.org>; from jcm@FreeBSD-uk.eu.org on Sat, Jun 16, 2001 at 10:15:34PM +0100 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jun 16, 2001 at 10:15:34PM +0100, j mckitrick wrote: > > Since i want to be able to perform cvs operations to update my source tree, > what is the best combination of directory permissions to do this, while > minimizing the number of operations required as root? > > Do i chown both /home/ncvs and /usr/src to the user id i will use? > > I think if i do this, cvsup reverts them. I also don't like having too many > files so relaxed on permissions. Or am i just paranoid? I have done `adduser ncvs' and I use cvs in read-only mode to checkout my /usr/src and /usr/ports and whatever from it. All the files in /home/ncvs are under CVSup's control, and I just use: # cd /usr/src # cvs -R -d /home/ncvs update -P -A -d to update my sources :-) The trick here is to use -R option, to tell cvs that it should not attempt to write anything in the repository, since it's read-only. [ Well, for root, it actually isn't read-only, but I also use the same repository from my normal 'charon' user, and the -R option has saved me a lot of trouble.] -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message