Enhanced Security Measures in Place:   To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.

RHEL7 - /bin/sh ./configure Permission Denied

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

RHEL7 - /bin/sh ./configure Permission Denied

L1 Bithead

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
1 accepted solution

Accepted Solutions

L1 Bithead

I have solved to mount /tmp directory with exec.

EC

View solution in original post

2 REPLIES 2

L1 Bithead

I have solved to mount /tmp directory with exec.

EC

L0 Member

@ECerafogli   I tried to follow Solved: LIVEcommunity - need steps to install minemeld on redhat - LIVEcommunity - 236821 (paloalton... , but my RHEL 7 cant go through the installation. Somehow I couldn't complete followed .

1. sudo -H /opt/minemeld/engine/current/bin/pip install -U "pip<10.0"

2. when I run

  • sudo ansible-playbook -K -i 127.0.0.1, local.yml I get the same error as you got. 

TASK [infrastructure : Configure Python 2.7.15] **********************************************************************************************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": "./configure --prefix=/usr/local", "delta": "0:00:00.008122", "end": "2021-05-10 10:43:29.923838", "msg": "non-zero return code", "rc": 126, "start": "2021-05-10 10:43:29.915716", "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=4  unreachable=0 failed=1  skipped=0 rescued=0 ignored=0

 

Can share what you meant by  "mount /tmp directory with exec." to get it resolved please. If you have more convenient guide please share with me. thanks in advance

 

 

  • 1 accepted solution
  • 5412 Views
  • 2 replies
  • 2 Likes
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 LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!