• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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