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?
opt/lampp/htdocs
git clone git@gitlab.com:whatever .
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 :)
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
sudo chmod -R 775 /opt/lampp/htdocs/
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.
sudo git clone (...)
sudo chmod a+w <path>
git clone
Source: https://habr.com/ru/post/1665717/More articles:How to make custom authorization in laravel 5.3 - phpExcessive ERROR logs fail with Spring SockJS and non-websocket transports - springGet a storage location for Powerpoint Mac add-ins - cocoaDomain Error = NSPOSIXErrorDomain Code = 100 "Protocol Error" - iosSimulate HTTP and parse route request parameters in Laravel test sheet - phpPython background jobs with lots of memory - pythonDoctrine query constructor gives wrong result - phpError: execution completed for task: app: compileDebugAidl ProcessException - androidI need to add a comma for the number when dialing and limit 2 decimal places - javascriptHow to remove Kafka theme using Kafka REST Proxy? - restAll Articles