• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Problem access to git repository

Nicola

Basic Pleskian
Server operating system version
CentOS 7
Plesk version and microupdate number
18.0.42
Hi,
How can I enable multiple users to access a repository instanced on a domain? Currently the only user who can log into the repository is the system user. I have tried to add ftp users or domain administrator users but I can't log in with anyone.

Thanks
 
There is a feature request for this issue:

 
PSA_PASSWORD=xxxx plesk sbin pdmng --add-user --vhost-name=example.com --directory=httpdocs@git@plesk-git --user-name=gituser1
PSA_PASSWORD=xxxx plesk sbin pdmng --add-user --vhost-name=example.com --directory=httpdocs@git@plesk-git --user-name=gituser2

the only problem is if you use lets encrypt certificates httpdocs@git@plesk-git file is clean on every update and you need run these commands again
 
Code:
PSA_PASSWORD=xxxx plesk sbin pdmng --add-user --vhost-name=example.com --directory=httpdocs@git@plesk-git --user-name=gituser1
PSA_PASSWORD=xxxx plesk sbin pdmng --add-user --vhost-name=example.com --directory=httpdocs@git@plesk-git --user-name=gituser2

the only problem is, if you use lets encrypt certificates httpdocs@git@plesk-git file is clean on every update and you need run these commands again.
On Plesk Obsidian 18.0.46 on previous versions of plesk and or git addon the file was called just "git@plesk-git"
look at the folder /var/www/vhosts/system/example.com/pd/
 
file httpdocs@git@plesk-git is also cleaned when it changed system user password , i.e. we need add gituser again
 
Back
Top