Date: Sun, 17 Jun 2001 03:18:23 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: j mckitrick <jcm@FreeBSD-uk.eu.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: best permissions for local CVS tree? Message-ID: <20010617031821.A2091@hades.hell.gr> 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 %2B0100 References: <20010616221534.A93020@dogma.freebsd-uk.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010617031821.A2091>