|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
setting up cvs on solaris, .cvspass, passwd - total confusion
I am trying to create a repsoitory in /cvs to hold configurations from a router/switch. I will use the repository as the root user (from a perl script) or as
user nobody (with apache). The repository is as follows... /cvs/configs/0 . . /cvs/configs/9 Before I have retrieved any configurations the repository will be empty, so I created the directories (as root) called ... /var/tmp/configs/0 . . /var/tmp/configs/9 I then did the following... - export CVSROOT=/cvs - cvs init - cd /var/tmp/configs # cd to the location of the directories 0-9 - cvs import -m "initial import" configs tag1 tag2 # importing directories 0-9 - rm -rf /var/tmp/configs # remove the original (empty) source tree - cd /var/tmp - cvs co configs # co the empty source tree with CVS directories - htpasswd -c /cvs/CVSROOT/passwd bigv # create myself a login - export CVSROOT=:'pserver:bigv@myhost:/cvs' - touch /var/tmp/configs/0/1.2.3.0 - cd /var/tmp/configs/0 - cvs add -m "no comment" 1.2.3.0 cvs responds with ... cvs add: scheduling file `1.2.3.0' for addition cvs add: use 'cvs commit' to add this file permanently - cvs [commit aborted]: cannot commit files as 'root' cvs responds with ... cvs [commit aborted]: cannot commit files as 'root' In my inetd.conf file I have the following... cvspserver stream tcp nowait cvs /usr/bin/cvs cvs --allow-root=/cvs pserver Where am I going wrong?? Thanks BigV |
|
#2
|
|||
|
|||
|
Further to this,
the bigv password has been edited in /cvs/CVSROOT/passwd as ... bigv:<password>:cvs bigV |
|
#3
|
|||
|
|||
|
I have just found this....
When committing a permanent change, CVS makes a log entry of who committed the change. If you are committing the change logged in as "root" (not under "su" or other root-priv giving program), CVS cannot determine who is actually making the change. As such, by default, CVS disallows changes to be committed by users logged in as "root". (You can disable this option by commenting out the definition of CVS_BADROOT in `options.h' before building CVS. Interesting!! |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > setting up cvs on solaris, .cvspass, passwd - total confusion |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|