title: cvs import: cannot make path to /opt/cvs/test_proj: Permission denied
body: <p>I am using Centos 7.5
  I installed cvs and cvs-inetd using yum
  I followed the steps from <a href="https://www.linuxfromscratch.org/blfs/view/5.1/server/cvsserver.html" rel="nofollow noreferrer">https://www.linuxfromscratch.org/blfs/view/5.1/server/cvsserver.html</a></p>
  <p>Started xinet services and all seems to work.
  But when I try to create anew repository. It fails</p>
  <pre><code>$ cvs import -m &quot;test repo&quot; 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
  </code></pre>
  <p>The same error when I copied old CVS repo in to /opt/cvs and try to checkout.</p>
  <p>What am I doing wrong? Any idea?</p>