I am on a remote server and when I try to push (my first push) my changes, I am getting the following error
Identity added: /root/.ssh/id_rsa_ci (/root/.ssh/id_rsa_ci)
$ git submodule sync --recursive
Synchronizing submodule url for ‘xxxxxxxxx’
Synchronizing submodule url for ‘xxxxxxxxx’
Synchronizing submodule url for ‘xxxxxxxxx’
error: could not lock config file /bts_xxxxxxxxx/xxxxxxxxx/xxxxxxxxx/.git/config: Permission denied
fatal: failed to update remote for submodule ‘xxxxxxxxx’
Cleaning up file based variables
ERROR: Job failed: exit code 1
username = yyyy
From the internet, I got a solution to run the following command
sudo chown yyyy -R
after typing the password, it says
Sorry, user yyyy is not allowed to execute ‘/bin/chown yyyy -R’ as root on serverXXX
It will be great if you can propose any solution to fix the issue.
Thanks!