info-cvs
[Top][All Lists]
Advanced

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

Re: checkout problem -> Solution


From: Dr Jaime V. Miro
Subject: Re: checkout problem -> Solution
Date: Mon, 22 Oct 2001 13:42:45 +0100

the answer to my problem: do not set CVSREAD!!!

CVS-RCS-HOWTO states:

*********************************
3.1 Environment variables 

The following environment variables need to be setup in /etc/profile - default 
values
required for all users. If not set in /etc/profile, then you should add these 
to your local
profile file  /.bash_profile. 


export EDITOR=/bin/vi
export CVSROOT=/home/cvsroot
export CVSREAD=yes
*********************************

if you do that, when a project is checkout, it is so with read-only permission, 
and 
you can't obviously make any modifications. Why that is said in the HOWTO is a 
mistery 
to me, but it surely did not help  :-(

Cheers,

Jaime




"Dr Jaime V. Miro" wrote:
> 
> Hi Matt/Pete,
> 
> I actually have the same problem that Pete is describing. I am only starting 
> with
> CVS, but can't seem to get the permissions right. I have been following the 
> CVS HOWTO
> and cvsbook.red-bean.com/cvsbook.html, and I have the same problem in both 
> cases (hence,
> I am obviously doing something wrorng ...): when I checkout a project that I 
> have
> commited to the repository, everything is read-only, and I can't make any 
> modifications.
> 
> I have created a group "cvs", and added my username "jaime" to that group. 
> This is a snippet
> of /etc/group
> 
> jaime:x:500:jaime
> cvs:x:502:jaime
> 
> The repository entry, in /usr/local, looks as follows:
> 
> drwxrwxr-x   4 root     cvs          4096 Oct 22 10:28 cvsrepos
> 
> and inside:
> 
> drwxrwxr-x   3 root     cvs          4096 Oct 19 12:43 CVSROOT
> 
> then I import my first project, helloWorld, so from the top of the helloWorld 
> tree I run (as user jaime)
> 
> [jaime]$ cvs import -m "my first cvs project" helloWorld_cvs jaime Rev1_0
> 
> It runs faultlessly, and the result in the repository (/usr/local/cvsrepos) 
> is:
> 
> drwxrwxr-x   3 root     cvs          4096 Oct 19 12:43 CVSROOT
> drwxrwxr-x   2 jaime    jaime        4096 Oct 22 10:34 helloWorld_cvs
> 
> and inside helloWorld_cvs, I have the following:
> 
> -r--r--r--   1 jaime    jaime         566 Oct 22 10:28 Make.files,v
> -r--r--r--   1 jaime    jaime        1024 Oct 22 10:28 Make.header,v
> -r--r--r--   1 jaime    jaime        2305 Oct 22 10:28 Makefile,v
> -r-xr-xr-x   1 jaime    jaime     1412574 Oct 22 10:28 helloWorld,v
> -r--r--r--   1 jaime    jaime         510 Oct 22 10:28 helloWorld.cc,v
> -r--r--r--   1 jaime    jaime       16793 Oct 22 10:28 helloWorld.proj,v
> -r--r--r--   1 jaime    jaime        2154 Oct 22 10:28 helloWorldProject.jcc,v
> 
> which is ALL read-only! it seems to me that there should be write permissions 
> here, but there aren't.
> When I later checkout the project in another directory (with write 
> permissions for user jaime), with
> 
> [jaime]$ cvs checkout hellowWorld_cvs
> 
> the following directory is created:
> 
> drwxrwxr-x   3 jaime    jaime        4096 Oct 22 10:34 helloWorld_cvs
> 
> with the following files inside
> 
> drwxrwxr-x   2 jaime    jaime        4096 Oct 22 10:34 CVS
> -r--r--r--   1 jaime    jaime         169 Oct 22 10:28 Make.files
> -r--r--r--   1 jaime    jaime         628 Oct 22 10:28 Make.header
> -r--r--r--   1 jaime    jaime        1902 Oct 22 10:28 Makefile
> -r-xr-xr-x   1 jaime    jaime     1407008 Oct 22 10:28 helloWorld
> -r--r--r--   1 jaime    jaime         113 Oct 22 10:28 helloWorld.cc
> -r--r--r--   1 jaime    jaime       16384 Oct 22 10:28 helloWorld.proj
> -r--r--r--   1 jaime    jaime        1758 Oct 22 10:28 helloWorldProject.jcc
> 
> All, unfortunately obviously, read-only :-(
> 
> Can anybody see what is wrong?
> 
> Thanks very much in advance.
> 
> Jaime
> 
> 
> 
> Matt Riechers wrote:
> >
> > address@hidden wrote:
> > >
> > > Hi Matt,
> > >
> > > I have set the unix group permissions for the directory corresponding
> > > to the repository and the project to "cvs", which is the group I created
> > > for repository access.
> > >
> > > Is there some place else that I need to set
> > > permissions?
> >
> > Does the user belong to the cvs group? The directory permissions should look
> > like:
> >
> > drwxrwsr-x  user-in-cvs-group  cvs         webengine_src
> > The user you are logging in as has to have write access to 'webengine_src'.
> > You should also run 'chmod g+s' on the directory to make sure all files in 
> > that
> > directory are owned by the directory owner.
> >
> > Please post your CVSROOT (client) and 'ls -ld $CVSROOT/webengine_SRC' 
> > (server).
> >
> > > Also, is "module" synonymous with "project"?
> >
> > In this case, yes. An "official" module is just a project listed in the
> > CVSROOT/modules file. A project may include zero or more modules.
> >
> > -Matt
> 
> --
> Dr Jaime V. Miro
> Sw and control systems analyst
> H2eye Ltd
> 24-28 Hatton Wall
> London EC1N 8JH
> 
> Tel:020-7404 9600
> Fax:020-7404 9490
> address@hidden
> 
> H2Eye®, Spyfish® and 'Dive deep stay dry' are H2Eye proprietary
> Trademarks and Slogans, and are Protected from copying and simulation
> under international trademark laws and treaties.
> The Spyfish® system is a Registered Design with patent pending.
> 
> Copyright © H2Eye International Ltd. 2000/2001. All rights reserved.

-- 
Dr Jaime V. Miro
Sw and control systems analyst
H2eye Ltd
24-28 Hatton Wall
London EC1N 8JH

Tel:020-7404 9600
Fax:020-7404 9490
address@hidden



H2Eye®, Spyfish® and 'Dive deep stay dry' are H2Eye proprietary
Trademarks and Slogans, and are Protected from copying and simulation
under international trademark laws and treaties.
The Spyfish® system is a Registered Design with patent pending.

Copyright © H2Eye International Ltd. 2000/2001. All rights reserved.


reply via email to

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