RHEL7 - /bin/sh ./configure Permission Denied

Reply
L1 Bithead

RHEL7 - /bin/sh ./configure Permission Denied

Hi all,

I'm installing minemeld-ansible on Redhat 7.
When i run this command:

sudo ansible-playbook -K -i 127.0.0.1, local.yml
i got this error:


`PLAY [minemeld playbook] **************************************************************************************************************************************************************************************

TASK [Gathering Facts] ****************************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [infrastructure : debug] *********************************************************************************************************************************************************************************
ok: [127.0.0.1] => {
"msg": "Loading vars for RedHat 7.2"
}

TASK [infrastructure : include_vars] **************************************************************************************************************************************************************************
ok: [127.0.0.1] => (item=/root/minemeld-ansible/roles/infrastructure/vars/RedHat-7.yml)

TASK [infrastructure : create minemeld group] *****************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [infrastructure : include task based on distribution] ****************************************************************************************************************************************************
included: /root/minemeld-ansible/roles/infrastructure/tasks/RedHat-7.yml for 127.0.0.1

TASK [infrastructure : enable epel] ***************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [infrastructure : enable RedHat RHEL 7 Optional repo (AWS)] **********************************************************************************************************************************************
changed: [127.0.0.1]

TASK [infrastructure : enable RedHat RHEL 7 Optional repo] ****************************************************************************************************************************************************
changed: [127.0.0.1]

TASK [infrastructure : Check for custom python] ***************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [infrastructure : Extract Python 2.7.15] *****************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [infrastructure : Configure Python 2.7.15] ***************************************************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": "./configure --prefix=/usr/local", "delta": "0:00:00.004001", "end": "2019-10-07 19:42:36.961017", "msg": "non-zero return code", "rc": 126, "start": "2019-10-07 19:42:36.957016", "stderr": "/bin/sh: ./configure: Permission denied", "stderr_lines": ["/bin/sh: ./configure: Permission denied"], "stdout": "", "stdout_lines": []}

PLAY RECAP ****************************************************************************************************************************************************************************************************
127.0.0.1 : ok=10 changed=2 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0`

 

I have root privileges and i have disabled SELinux, so why does it happen?
Thanks.

EC
L1 Bithead

Re: RHEL7 - /bin/sh ./configure Permission Denied

I have solved to mount /tmp directory with exec.

EC
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!