Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2000-04

cvs broken (still?)

8 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Fabien Ninoles
to Vincent Snijders: Unfortunately something went wrong there. I could temporarily checkout the lazarus code…
Michael Van Canneyt wrote 18 lines
On Tue, 4 Apr 2000, Vincent Snijders wrote: > > > Hmmm, forgot that one :( > > > > Anyway, i had a script fix ALL permissions of the repository, > > so it should function now. > > Unfortunately something went wrong there. I could temporarily checkout the > lazarus code at 20:30 UTC, but now I get the following error message for > every CVS-access: > Sorry, you don't have read/write access to the history file > /FPC/CVS/CVSROOT/history > Permission denied !!!

Hum... here a little trick to set it correctly:
use the sgid bit on directory. This make all new files (including directories) create in the directory heritate the group ownership of the parent directories (with the exception of the sgid bit for regular files). The following commands should do it if execute on the local machine with CVSROOT set to something like /usr/local/cvs:

find $CVSROOT -type d -exec chgrp cvs {} \;
find $CVSROOT -type d -exec chmod g+srwx {} \;
chmod g-ws $CVSROOT/CVSROOT

For this to work, you have to make the anonymous user a member of the cvs group. The CVSROOT directory however should not be taken care because it contains very sensitive files. I don't know enough of CVS to know exactly which one.

For more details on sgid on directory: info fileutils , node 'Structure of File Permissions'.

Show quoted text 16 lines
It should be OK now, I hope :( Luckily I checked my mail a last time; otherwise ~10 hours of waiting ahead :-) Goodnight. <Lights off> <Michael off> _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus
------------------------------------------------------------------------ Fabien Ninoles Chevalier servant de la Dame Catherine des Rosiers aka Corbeau aka le Veneur Gris Debian GNU/Linux maintainer E-mail: WebPage: http://www.tzone.org/~fabien RSA PGP KEY [E3723845]: 1C C1 4F A6 EE E5 4D 99 4F 80 2D 2D 1F 85 C1 70 ------------------------------------------------------------------------

Reply by email

Vincent Snijders
to Michael Van Canneyt: Hmmm, forgot that one :( Anyway, i had a script fix ALL permissions of the repository, so…
Hmmm, forgot that one :( Anyway, i had a script fix ALL permissions of the repository, so it should function now.

Unfortunately something went wrong there. I could temporarily checkout the lazarus code at 20:30 UTC, but now I get the following error message for every CVS-access:
Sorry, you don't have read/write access to the history file /FPC/CVS/CVSROOT/history
Permission denied

Reply by email

dvortex
to Michael Van Canneyt: Hmmm, forgot that one :( Anyway, i had a script fix ALL permissions of the repository, so…

hmmm...
you fixed that one...

... but ...
----------------
(Logging in to )
CVS password:
Sorry, you don't have read/write access to the history file /FPC/CVS/CVSROOT/history
Permission denied
----------------

Michael Van Canneyt wrote 24 lines
On Tue, 4 Apr 2000, dvortex wrote: > or is it just me having problem ? > > (am i missing something ?) > ---------- > [snip] > U packages/Makefile.fpc > cvs server: Updating packages/cmem Hmmm, forgot that one :( Anyway, i had a script fix ALL permissions of the repository, so it should function now. Michael. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Fabien Ninoles
to Fabien Ninoles: Hum... here a little trick to set it correctly: use the sgid bit on directory. This make…
Michael Van Canneyt wrote 49 lines
On Wed, 5 Apr 2000, Fabien Ninoles wrote: > On Tue, Apr 04, 2000 at 11:42:43PM +0200, Michael Van Canneyt wrote: > > > > > > On Tue, 4 Apr 2000, Vincent Snijders wrote: > > > > > > > > > Hmmm, forgot that one :( > > > > > > > > Anyway, i had a script fix ALL permissions of the repository, > > > > so it should function now. > > > > > > Unfortunately something went wrong there. I could temporarily checkout the > > > lazarus code at 20:30 UTC, but now I get the following error message for > > > every CVS-access: > > > Sorry, you don't have read/write access to the history file > > > /FPC/CVS/CVSROOT/history > > > Permission denied > > > > !!! > > Hum... here a little trick to set it correctly: > use the sgid bit on directory. This make all new files (including > directories) create in the directory heritate the group ownership > of the parent directories (with the exception of the sgid bit for > regular files). The following commands should do it if execute > on the local machine with CVSROOT set to something like /usr/local/cvs: > > find $CVSROOT -type d -exec chgrp cvs {} \; > find $CVSROOT -type d -exec chmod g+srwx {} \; > chmod g-ws $CVSROOT/CVSROOT > > For this to work, you have to make the anonymous user a member of the cvs > group. The CVSROOT directory however should not be taken care because it > contains very sensitive files. I don't know enough of CVS to know exactly > which one. I do :-) At least the history file must be writable. > > For more details on sgid on directory: info fileutils , node 'Structure > of File Permissions'. Is this for CVS only ? Because if I do a 'mkdir' then it doesn't create a dir with the correct info; although it may be that my umask setting has something to do with it.

It should at least have the correct ownership for group. The permission depends on the umask of the user however. For CVS, you can set the CVSUMASK environment variable to something else. However, I think it create new directories with sensible permissions reflect on this. At least, it works at work.

Michael.
------------------------------------------------------------------------ Fabien Ninoles Chevalier servant de la Dame Catherine des Rosiers aka Corbeau aka le Veneur Gris Debian GNU/Linux maintainer E-mail: WebPage: http://www.tzone.org/~fabien RSA PGP KEY [E3723845]: 1C C1 4F A6 EE E5 4D 99 4F 80 2D 2D 1F 85 C1 70 ------------------------------------------------------------------------

Reply by email

dvortex

or is it just me having problem ?

(am i missing something ?)
----------
[snip]
U packages/Makefile.fpc
cvs server: Updating packages/cmem
cvs server: failed to create lock directory in repository `/FPC/CVS/fpc/packages/cmem': Unknown error 18446744073709485823 cvs server: failed to obtain dir lock in repository `/FPC/CVS/fpc/packages/cmem'cvs [server aborted]: read lock failed - giving up
-----------

here is the command i am using:
cvs -z3 checkout \
base \
docs \
fcl \
packages \
lazarus \
rtl \
compiler \
gdbpas \
ide \
utils

in a little script after the cvs login.
(i had to delete the tree because of space problem, and they have been solved :o) so i'm trying to get it back now..

Reply by email

Michael Van Canneyt
to Vincent Snijders: Unfortunately something went wrong there. I could temporarily checkout the lazarus code…
Vincent Snijders wrote 12 lines
> Hmmm, forgot that one :( > > Anyway, i had a script fix ALL permissions of the repository, > so it should function now. Unfortunately something went wrong there. I could temporarily checkout the lazarus code at 20:30 UTC, but now I get the following error message for every CVS-access: Sorry, you don't have read/write access to the history file /FPC/CVS/CVSROOT/history Permission denied

!!!

It should be OK now, I hope :(

Luckily I checked my mail a last time;
otherwise ~10 hours of waiting ahead :-)

Goodnight.

<Lights off>

<Michael off>

Reply by email

Michael Van Canneyt
to Fabien Ninoles: Hum... here a little trick to set it correctly: use the sgid bit on directory. This make…
Fabien Ninoles wrote 35 lines
On Tue, Apr 04, 2000 at 11:42:43PM +0200, Michael Van Canneyt wrote: > > > On Tue, 4 Apr 2000, Vincent Snijders wrote: > > > > > > Hmmm, forgot that one :( > > > > > > Anyway, i had a script fix ALL permissions of the repository, > > > so it should function now. > > > > Unfortunately something went wrong there. I could temporarily checkout the > > lazarus code at 20:30 UTC, but now I get the following error message for > > every CVS-access: > > Sorry, you don't have read/write access to the history file > > /FPC/CVS/CVSROOT/history > > Permission denied > > !!! Hum... here a little trick to set it correctly: use the sgid bit on directory. This make all new files (including directories) create in the directory heritate the group ownership of the parent directories (with the exception of the sgid bit for regular files). The following commands should do it if execute on the local machine with CVSROOT set to something like /usr/local/cvs: find $CVSROOT -type d -exec chgrp cvs {} \; find $CVSROOT -type d -exec chmod g+srwx {} \; chmod g-ws $CVSROOT/CVSROOT For this to work, you have to make the anonymous user a member of the cvs group. The CVSROOT directory however should not be taken care because it contains very sensitive files. I don't know enough of CVS to know exactly which one.

I do :-) At least the history file must be writable.

For more details on sgid on directory: info fileutils , node 'Structure of File Permissions'.

Is this for CVS only ?
Because if I do a 'mkdir' then it doesn't create a dir with the correct info; although it may be that my umask setting has something to do with it.

Michael.

Reply by email