MISP / misp-modules

Modules for expansion services, enrichment, import and export in MISP and other tools.
http://misp.github.io/misp-modules
GNU Affero General Public License v3.0
347 stars 234 forks source link

error: could not create 'misp_modules.egg-info': Permission denied #441

Closed B1u3f331 closed 4 years ago

B1u3f331 commented 4 years ago

I am following the below steps to install MISP: " How to install and start MISP modules in a Python virtualenv? (recommended) sudo apt-get install python3-dev python3-pip libpq5 libjpeg-dev tesseract-ocr libpoppler-cpp-dev imagemagick virtualenv libopencv-dev zbar-tools libzbar0 libzbar-dev libfuzzy-dev build-essential -y sudo -u www-data virtualenv -p python3 /var/www/MISP/venv cd /usr/local/src/ chown -R www-data . sudo git clone https://github.com/MISP/misp-modules.git cd misp-modules sudo -u www-data /var/www/MISP/venv/bin/pip install -I -r REQUIREMENTS sudo -u www-data /var/www/MISP/venv/bin/pip install .

Start misp-modules as a service

sudo cp etc/systemd/system/misp-modules.service /etc/systemd/system/ sudo systemctl daemon-reload sudo systemctl enable --now misp-modules /var/www/MISP/venv/bin/misp-modules -l 127.0.0.1 -s & #to start the modules "

but I got error in this setp:

“sudo -u www-data /var/www/MISP/venv/bin/pip install -I -r REQUIREMENTS”

the error shows image

image

adulau commented 4 years ago

As indicated, you have some permissions issues in your directory. I would do a chown to www-data for the directory having issues.