Permission denied when cloning a project in htdocs

I am new to linux and I am trying to clone a project into the folder that is currently contained in opt/lampp/htdocsusing the command git clone git@gitlab.com:whatever ., but I am being denied permission to refuse. What can I do to solve this problem?

+4
source share
3 answers

try to provide full permission to the htdocs folder

sudo chmod 777 opt / lampp / htdocs

Then he will ask you to enter a password and continue. learn more here :)

-1
source

update httpd.conf

 sudo gedit /opt/lampp/etc/httpd.conf

To find

 User nobody
 Group nogroup

htdocs

sudo chown -R username:username /opt/lampp/htdocs

htdocs

sudo chmod -R 775 /opt/lampp/htdocs/

0

Permission denied - this is exactly what he says. You do not have permission to write to this folder. You can either git clone the repo as root with sudo git clone (...), or change permissions on this folder. sudo chmod a+w <path>and then git clonethis is normal. You can also clone the repository to another folder to which you already have write permissions.

-1
source

Source: https://habr.com/ru/post/1665717/


All Articles