Rise Company
06-12-2023, 21:19
كلاود لينكس Cloud Linux حل مشكلة CloudLinux Disable ptrace
CloudLinux Disable ptrace is not configured. You should configure it in /etc/sysctl.conf to prevent users accessing server resources that they do not need on web servers
https://www.rise.company/upload/uploads/170188971839921.png
المشكلة :
داخل فايروول csf عند عمل check تظهر رسالة
CloudLinux Disable ptrace CloudLinux Disable ptrace is not configured. You should configure it in /etc/sysctl.conf to prevent users accessing server resources that they do not need on web servers
By default, CloudLinux OS Shared doesn't prevent the ptrace functionality.
https://www.rise.company/upload/uploads/170189013982121.png
حل المشكلة :
ادخل هذا الامر
nano /etc/sysctl.conf
ثم هتجد سطر به fs.suid_dumpable=0 ضع قبله الكود التالى
## CL. Disable ptrace for users
kernel.user_ptrace = 0
kernel.user_ptrace_self = 0
##
ثم امر التنفيذ
sysctl -p
شاهد ايضا
كلاود لينكس CLOUD LINUX حل مشكلة APACHE SYMLINK PROTECTION / YOUR SYSCTL VALUES (https://www.rise.company/forum/showthread.php/90188-%D9%83%D9%84%D8%A7%D9%88%D8%AF-%D9%84%D9%8A%D9%86%D9%83%D8%B3-Cloud-Linux-%D8%AD%D9%84-%D9%85%D8%B4%D9%83%D9%84%D8%A9-Apache-Symlink-Protection-Your-sysctl-values)
المرجع:
https://cloudlinux.zendesk.com/hc/en-us/articles/4413280279836-How-to-enable-disable-the-Ptrace-block-
CloudLinux Disable ptrace is not configured. You should configure it in /etc/sysctl.conf to prevent users accessing server resources that they do not need on web servers
https://www.rise.company/upload/uploads/170188971839921.png
المشكلة :
داخل فايروول csf عند عمل check تظهر رسالة
CloudLinux Disable ptrace CloudLinux Disable ptrace is not configured. You should configure it in /etc/sysctl.conf to prevent users accessing server resources that they do not need on web servers
By default, CloudLinux OS Shared doesn't prevent the ptrace functionality.
https://www.rise.company/upload/uploads/170189013982121.png
حل المشكلة :
ادخل هذا الامر
nano /etc/sysctl.conf
ثم هتجد سطر به fs.suid_dumpable=0 ضع قبله الكود التالى
## CL. Disable ptrace for users
kernel.user_ptrace = 0
kernel.user_ptrace_self = 0
##
ثم امر التنفيذ
sysctl -p
شاهد ايضا
كلاود لينكس CLOUD LINUX حل مشكلة APACHE SYMLINK PROTECTION / YOUR SYSCTL VALUES (https://www.rise.company/forum/showthread.php/90188-%D9%83%D9%84%D8%A7%D9%88%D8%AF-%D9%84%D9%8A%D9%86%D9%83%D8%B3-Cloud-Linux-%D8%AD%D9%84-%D9%85%D8%B4%D9%83%D9%84%D8%A9-Apache-Symlink-Protection-Your-sysctl-values)
المرجع:
https://cloudlinux.zendesk.com/hc/en-us/articles/4413280279836-How-to-enable-disable-the-Ptrace-block-