Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied #154

Open
realyukii opened this issue Sep 23, 2024 · 0 comments
Open

Permission denied #154

realyukii opened this issue Sep 23, 2024 · 0 comments

Comments

@realyukii
Copy link

realyukii commented Sep 23, 2024

I'm following this guide.

even though the scope level is 1, why I'm unable to use reptyr?

[user@server ~]$  ps -Fp 345563
UID          PID    PPID  C    SZ   RSS PSR STIME TTY          TIME CMD
user      345563  345119  0  6782 18668   1 21:08 pts/1    00:00:00 python -m http.server 6680
[user@server ~]$  whoami
user
[user@server ~]$  reptyr 345563
Unable to attach to pid 345563: Operation not permitted
The kernel denied permission while attaching. If your uid matches
the target's, check the value of /proc/sys/kernel/yama/ptrace_scope.
For more information, see /etc/sysctl.d/10-ptrace.conf
[user@server ~]$  cat /proc/sys/kernel/yama/ptrace_scope
1
[user@server ~]$  tmux ls
0: 1 windows (created Mon Sep 23 20:49:05 2024) (attached)

I have already disown the process from the jobs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant