Jsitech / JShielder

Hardening Script for Linux Servers/ Secure LAMP-LEMP Deployer/ CIS Benchmark
GNU General Public License v3.0
753 stars 241 forks source link

Can't run Algo #25

Closed kustomservices closed 5 years ago

kustomservices commented 5 years ago

After installing lamp on ubuntu 18.0.4 I get an error message when I try to install Algo. ./algo: line 22: /home/<user>/algo/env/bin/ansible-playbook: Permission denied Is there anything in the server hardening that would be causing this? That particular line in the ansible-playbook is :

line 21: from __future__ import (absolute_import, division, print_function)
line 22: __metaclass__ = type

Any ideas?

Jsitech commented 5 years ago

Might be the Default Umask set by Jshielder. It sets a umask of 027, so every file created only the owner can read and write and anyone can only read. If the install is trying to modify a file via another user this might be the reason you are getting the Permission denied. Go to the path the installation is trying to access and check the permissions.

Jsitech commented 5 years ago

No feedback from user. Closing issue.

nabeards commented 4 years ago

I just had this exact same error on CentOS 7. The issue was that the file /home/<user>/algo/.env/bin/ansible-playbook

was missing the execute bit. Doing chmod 775 /home/<user>/algo/.env/bin/ansible-playbook

resolved the issue for me.