[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: permission problem - cannot checkout

From: Mick
Subject: Re: permission problem - cannot checkout
Date: Mon, 5 Nov 2001 20:36:02 -0800 (PST)

It's because of incorrect group permission setting.

Here's what's happening.

Let's say your user id is 'roni'. When you import
'Proj1', the folder that contains the module will look
like this when you 'ls -l /home/cvsroot'

drwxr-xr-x roni roni    Proj1/

When someone want to check out that module, CVS tries
to create a lock file in that directory, but he/she
has no permission to do so.

What you want to do is this. (All to be donw as

1. Create 'cvs' group
$ groupadd cvs

2. Add users to that group
$ usermod -G anyuserid,cvs anyuserid (obviously
replace anyuserid with the actual user id.  Note that
it's a capital G and there are no spaces next to the
comma sign.

3. Set sgid of $CVSROOT folder
$ chmod 2770 /home/cvsroot

4. Change the group owner of $CVSROOT to cvs
$ chgrp cvs /home/cvsroot

Steps 3 and 4 have the consequence of giving all
subdirectories the group ownership of 'cvs'.  Now
whenever you import a module, it will be owned by
'cvs' group.  Thus anyone who is in 'cvs' group can
create a lockfile in that directory.

Additionally, you could change the group ownership of
'cvs' binary as well, so that it can only be run by
people in 'cvs' group, but that has nothing to do with
your problem :-)

Hope this helps.  Bye.

--- "Roni A." <address@hidden> wrote:
> I'm new at CVS, and I tried for the first time to
> start a project in it.
> I've imported my sources and created a project in
> CVS, but for some reason,
> I'm the only one that can use it. When other people
> are trying to checkout
> this project, they get the following message:
> cvs checkout: Updating Proj1
> cvs checkout: failed to create lock directory for
> `/home/cvsroot/Proj1'
> (/home/cvsroot/Proj1/#cvs.lock): Permission denied
> cvs checkout: failed to obtain dir lock in
> repository `/home/cvsroot/Proj1'
> cvs [checkout aborted]: read lock failed - giving up
> Can please someone help me and tell me what did I do
> wrong?
> _______________________________________________
> Info-cvs mailing list
> address@hidden

Do You Yahoo!?
Find a job, post your resume.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]