Running the strace command returns: "strace: ptrace(PTRACE_TRACEME, ...): Operation not permitted"
Issue
- When attempting to run
strace
for a given command, the following error is printed:
strace: ptrace(PTRACE_TRACEME, ...): Operation not permitted
- When running the command
cat /proc/sys/kernel/yama/ptrace_scope
, the output is3
even though thesysctl.conf
has the value at0
.
Environment
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.