/bin/sh permission denied when use sudo command
by Meg4R0M from LinuxQuestions.org on (#6Q88K)
Hello :)
im facing a little problem with sudo, maybe cause SeLinux too but:
When i try to use command like
Code:sudo -u root /bin/sh -c python3it give me permission denied
and when i do this:
Code:sudo -u root python3its OK...
I need to use the first command because i want to deploy on my servers with Ansible and i cant modify the way to launch modules :/
Do you Have any ideas ?
Thanks for reading.
oh and some informations:
RHEL 9 - SELinux ON - Security profile ANSSI-BP-028 Enhanced
im facing a little problem with sudo, maybe cause SeLinux too but:
When i try to use command like
Code:sudo -u root /bin/sh -c python3it give me permission denied
and when i do this:
Code:sudo -u root python3its OK...
I need to use the first command because i want to deploy on my servers with Ansible and i cant modify the way to launch modules :/
Do you Have any ideas ?
Thanks for reading.
oh and some informations:
RHEL 9 - SELinux ON - Security profile ANSSI-BP-028 Enhanced