ping: socket: Operation not permitted


Hello, today I was trying to troubleshoot a network problem and I realised that ping now requires root to be executed.

Code:  [Select]
ping www.google.com
ping: socket: Operation not permitted

 

Code:  [Select]
sudo ping www.google.com
PING www.google.com (216.58.201.164) 56(84) bytes of data.
64 bytes from mad08s06-in-f4.1e100.net (216.58.201.164): icmp_seq=1 ttl=115 time=22.9 ms
64 bytes from mad08s06-in-f4.1e100.net (216.58.201.164): icmp_seq=2 ttl=115 time=12.2 ms


I checked this and it solves the problem but I don't know if this should be fixed from installation. I normally update every day so I don't know when exactly happened.

The command I used to solve the issue:


Code:  [Select]
sysctl -w net.ipv4.ping_group_range="0 1000"


Best regards.

 

參考:https://forum.artixlinux.org/index.php/topic,1809.0.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM