• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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