CVS Error: failed to create lock directory... Permission denied
The lock file is being created in /var/lock/cvs/foo/
you should check the permissions of that directory.
Why is checkout permission denied on new folder creation for CVS?
Figured it out and posting the answer for posterity.
I was originally going to set the repository folder to group cvs
and make it sticky via chmod g+s /app/cvs/repository/
, but that is not recursive and I don't know that I want to mess with that.
Default group id (GID) was not cvs
for the users. The solution is a bit of a workaround as we're using Active Directory as our account login. Luckily, we're only using this server for CVS, which makes the solution simple.
This must be done for each account and each new account.
- Make sure the account has attempted a log-in against CVS via Eclipse/RAD (and checked out a project, perhaps). This creates the user profile under home.
sudo su
cd \home\{username}
- Since we have nothing else going on in it,
echo "newgrp cvs" >> .profile
That will set the default group to cvs
for the offending accounts on log-in and I can call it a day... and eventually migrate to Git / BitBucket.
CVS Checkout issue
The lock file is being created in /var/lock/cvs/foo/
--- you should check the permissions of that directory.
cvs import: cannot make path to /opt/cvs/test_proj: Permission denied
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.
could not open lock file: Permission denied when branching a project
The problem was that indeed the write permission on the file system was not granted for this file. Hence the error message Permission denied
.
Related Topics
Can't Hard Link The Gitconfig File
Vue Npm Run Serve Failed to Load Resource: Net::Err_Content_Length_Mismatch
Sublime Text 2 Build (Ctrl +B) Intel Fortran Compiler
Using Ebpf to Measure CPU Mode Switch Overhead Incured by Making System Call
Range: Bytes 0- Fails in Apache 2.2.23
Why Do My Keystrokes Turn into Crazy Characters After I Dump a Bunch of Binary Data into My Terminal
G++ Error: Expected ; Before "It"
How to Search The Content of a PDF File in Linux Shell Script
How to Change Vim's Default Mode
Do I Get a Notification from Epoll When a Fd Is Closed
Linux Kill Process Using Timeout in Milliseconds
Link Extraction from a Google Page in Bash
How to Read a Value from User Input into a Variable
How to Enable or Configure Ftrace Module
Why 2 Linux Processes of Same File Cannot Share Text Segment
Error While Building Pjsip in Linux
Docker Non-Root Bind-Mount Permissions, with -Userns-Remap
How to Write Content to File on Linux Sftp Server Using Sshclient