[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why "co" locked by server after the repository moving to another PC?
From: |
Sam Song |
Subject: |
Re: Why "co" locked by server after the repository moving to another PC? |
Date: |
Wed, 27 Oct 2004 11:07:13 +0800 (CST) |
"Mark D. Baushke" <address@hidden> wrote:
> > How to solve this? I searched archive but didn't
> > get the nice message. If this is a FAQ, pls point
> > out it to me.
>
> https://ccvs.cvshome.org/fom/cache/92.html
>
> It is likey to be ownership and group problems of
> your /cvsroot directory.
Under your instruction, I tried several times on
changing group but all failed. So I listed my whole
process as follows to check:
When setuping the cvs, I had used some group commands.
1. useradd -d /cvsroot cvs
2. chmod 771 /cvsroot
3. useradd cvspub
4. usermod -G cvs cvspub
I added passwd/writers/readers in /cvsroot/CVSROOT/ as
root.
So I had the checkout problem which I submitted.
Then I tried to change the group as you suggested:
chgrp -G cvs /cvsroot
Still didn't work right.
Then
usermod -G cvs sam
chmod g+s /cvsroot/
No matter what I tried, I couldn't checkout the moved
repository from the former cvs PC.
All I wanted was to remove the former cvs repository
to a new home, red hat 7.0 host PC.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
address@hidden workspace]# cvs -d
:pserver:address@hidden:/cvsroot login
Logging in to :pserver:address@hidden:2401/cvsroot
CVS password:
address@hidden workspace]# cvs -z3 -d
:pserver:address@hidden:/cvsroot co dmtxxzd-u-boot
cvs server: Updating dmtxxzd-u-boot
cvs server: failed to create lock directory in
repository `/cvsroot/dmtxxzd-u-boot': Permission
denied
cvs server: failed to obtain dir lock in repository
`/cvsroot/dmtxxzd-u-boot'
cvs [server aborted]: read lock failed - giving up
address@hidden workspace]# ls
cvs-problem dmtxxzd-u-boot
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
address@hidden /]# ls /cvsroot/ -l
total 20
drwxrwxr-x 3 cvs cvs 4096 Oct 27
09:52 CVSROOT
drwxr-xr-x 5 cvs cvs 4096 Oct 26
03:35 Desktop
drwxrwxr-x 15 sam cvs 4096 Oct 26
04:48 dmtxxzd-kernel
drwxr-xr-x 25 sam cvs 4096 Oct 27
08:57 dmtxxzd-u-boot
drwxrwxr-x 14 sam cvs 4096 Oct 25
14:11 lite_dw-kernel
address@hidden /]#
address@hidden /]# ls /cvsroot/dmtxxzd-u-boot/ -l
total 424
-r--r--r-- 1 sam cvs 82853 Sep 9
04:50 CHANGELOG,v
-r--r--r-- 1 sam cvs 15577 Sep 9
04:50 COPYING,v
-r--r--r-- 1 sam cvs 8653 Sep 9
04:50 CREDITS,v
-r--r--r-- 1 sam cvs 7832 Sep 9
04:50 MAINTAINERS,v
-r-xr-xr-x 1 sam cvs 6555 Sep 9
04:50 MAKEALL,v
-r--r--r-- 1 sam cvs 43100 Sep 9
04:50 Makefile,v
-r--r--r-- 1 sam cvs 112867 Sep 9
04:50 README,v
-r--r--r-- 1 sam cvs 1359 Sep 9
04:50 arm_config.mk,v
drwxrwxr-x 139 sam cvs 4096 Oct 27
08:57 board
drwxrwxr-x 2 sam cvs 4096 Oct 27
08:58 common
-r--r--r-- 1 sam cvs 5550 Sep 9
04:50 config.mk,v
drwxrwxr-x 24 sam cvs 4096 Oct 27
08:58 cpu
drwxrwxr-x 2 sam cvs 4096 Oct 27
08:58 disk
drwxrwxr-x 2 sam cvs 4096 Oct 27
08:58 doc
drwxrwxr-x 3 sam cvs 4096 Oct 27
08:58 drivers
drwxrwxr-x 2 sam cvs 4096 Oct 27
08:58 dtt
drwxrwxr-x 2 sam cvs 4096 Oct 27
08:58 examples
drwxrwxr-x 7 sam cvs 4096 Oct 27
08:58 fs
-r--r--r-- 1 sam cvs 1361 Sep 9
04:50 i386_config.mk,v
drwxrwxr-x 16 sam cvs 4096 Oct 27
08:58 include
drwxrwxr-x 2 sam cvs 4096 Oct 27
08:58 lib_arm
drwxrwxr-x 2 sam cvs 4096 Oct 27
08:58 lib_generic
drwxrwxr-x 2 sam cvs 4096 Oct 27
08:58 lib_i386
drwxrwxr-x 2 sam cvs 4096 Oct 27
08:58 lib_m68k
drwxrwxr-x 2 sam cvs 4096 Oct 27
08:58 lib_microblaze
drwxrwxr-x 2 sam cvs 4096 Oct 27
08:58 lib_mips
drwxrwxr-x 2 sam cvs 4096 Oct 27
08:58 lib_nios
drwxrwxr-x 2 sam cvs 4096 Oct 27
08:58 lib_ppc
-r--r--r-- 1 sam cvs 1385 Sep 9
04:50 m68k_config.mk,v
-r--r--r-- 1 sam cvs 1556 Sep 9
04:50 microblaze_config.mk,v
-r--r--r-- 1 sam cvs 1356 Sep 9
04:50 mips_config.mk,v
-r-xr-xr-x 1 sam cvs 1581 Sep 9
04:50 mkconfig,v
drwxrwxr-x 2 sam cvs 4096 Oct 27
08:58 net
-r--r--r-- 1 sam cvs 1390 Sep 9
04:50 nios_config.mk,v
drwxrwxr-x 3 sam cvs 4096 Oct 27
08:58 post
-r--r--r-- 1 sam cvs 1387 Sep 9
04:50 ppc_config.mk,v
-r--r--r-- 1 sam cvs 1784 Sep 9
04:50 readme,v
drwxrwxr-x 2 sam cvs 4096 Oct 27
08:58 rtc
drwxrwxr-x 9 sam cvs 4096 Oct 27
08:58 tools
address@hidden /]# ls /cvsroot/CVSROOT/ -l
total 108
drwxrwxr-x 2 cvs cvs 4096 Oct 26
03:36 Emptydir
-r--r--r-- 1 cvs cvs 493 Oct 26
03:36 checkoutlist
-r--r--r-- 1 cvs cvs 692 Oct 26
03:36 checkoutlist,v
-r--r--r-- 1 cvs cvs 760 Oct 26
03:36 commitinfo
-r--r--r-- 1 cvs cvs 959 Oct 26
03:36 commitinfo,v
-rwxr-xr-x 1 cvs cvs 364 Oct 27
09:52 config
-r--r--r-- 1 cvs cvs 563 Oct 26
03:36 config,v
-r--r--r-- 1 cvs cvs 753 Oct 26
03:36 cvswrappers
-r--r--r-- 1 cvs cvs 952 Oct 26
03:36 cvswrappers,v
-r--r--r-- 1 cvs cvs 1025 Oct 26
03:36 editinfo
-r--r--r-- 1 cvs cvs 1224 Oct 26
03:36 editinfo,v
-rw-rw-rw- 1 cvs cvs 2031 Oct 27
09:54 history
-r--r--r-- 1 cvs cvs 1141 Oct 26
03:36 loginfo
-r--r--r-- 1 cvs cvs 1340 Oct 26
03:36 loginfo,v
-r--r--r-- 1 cvs cvs 1151 Oct 26
03:36 modules
-r--r--r-- 1 cvs cvs 1350 Oct 26
03:36 modules,v
-r--r--r-- 1 cvs cvs 564 Oct 26
03:36 notify
-r--r--r-- 1 cvs cvs 763 Oct 26
03:36 notify,v
-rwxr-xr-x 1 root cvs 24 Oct 27
09:50 passwd
-r--r--r-- 1 cvs cvs 649 Oct 26
03:36 rcsinfo
-r--r--r-- 1 cvs cvs 848 Oct 26
03:36 rcsinfo,v
-rwxr-xr-x 1 root cvs 14 Oct 26
03:55 readers
-r--r--r-- 1 cvs cvs 879 Oct 26
03:36 taginfo
-r--r--r-- 1 cvs cvs 1078 Oct 26
03:36 taginfo,v
-r--r--r-- 1 cvs cvs 1026 Oct 26
03:36 verifymsg
-r--r--r-- 1 cvs cvs 1225 Oct 26
03:36 verifymsg,v
-rwxr-xr-x 1 root cvs 9 Oct 27
09:02 writers
address@hidden /]#
address@hidden /]# cat /cvsroot/CVSROOT/writers
sam
root
address@hidden /]#
address@hidden /]# cat /cvsroot/CVSROOT/readers
sam
anonymous
address@hidden /]#
Where did I go wrong? Pls tell me the key point of the
problem.
Thanks a lot!
=====
Best regards,
Sam
_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/