skip to Main Content

I am using Centos 7.5
I installed cvs and cvs-inetd using yum
I followed the steps from https://www.linuxfromscratch.org/blfs/view/5.1/server/cvsserver.html

Started xinet services and all seems to work.
But when I try to create anew repository. It fails

$ cvs import -m "test repo" test_proj HEAD MAIN
I test_proj/test_proj/test.o
cvs import: cannot make path to /opt/cvs/test_proj: Permission denied
cvs import: failed to create lock directory for `/opt/cvs/test_proj' (/opt/cvs/test_proj/#cvs.lock): No such file or directory
cvs import: lock failed - giving up
cvs import: Importing /opt/cvs/test_proj/test_proj
cvs import: ERROR: cannot mkdir /opt/cvs/test_proj/test_proj -- not added: No such file or directory

No conflicts created by this import

The same error when I copied old CVS repo in to /opt/cvs and try to checkout.

What am I doing wrong? Any idea?

2

Answers


  1. Chosen as BEST ANSWER

    I did not find the exact root cause but the figured out something to do with SELINUX security. I turned off SELinux on /etc/selinux/config

    SELINUX=disabled
    

    Then rebooted the server and all worked like a magic. Checkout and adding new repo works now. I am good with turning off the security for now. Since these components will be migrated to git and this server will be upgraded. This solution is not recommended for anyone who is intended using CVS permanently.


  2. Permission is denied because the user you have logged in don’t have the permission to create new file in /opt/cvs/* so just be a super user and perform the action like:

    sudo cvs import -m "test repo" test_proj HEAD MAIN
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search