Since some not long time ping stopped working as non-root (I'm not sure if it distro-wide or maybe it is my custom kernel). The ping is fixed by this command:
sysctl -w net.ipv4.ping_group_range="0 1000"
But the problem is I cannot add it to /etc/sysctl.conf because it looks like it is overriden in boot later. If someone fixed the same problem please share your knowledge.
/usr/lib/sysctl.d/50-default.conf? I have-net.ipv4.ping_group_range = 0 2147483647and indeedcat /proc/sys/net/ipv4/ping_group_rangegives0 2147483647. Which version of Ubuntu? – Doug Smythies Jan 28 '23 at 21:32ls -al /usr/bin/ping– chili555 Jan 29 '23 at 00:34systemd. 249.11 has50-default.confwhile 251.4 don't have it. Either I should downgrade or get the copy of the file, will decide later. – midenok Jan 30 '23 at 10:55pingworking for non-root user? – WinEunuuchs2Unix Oct 19 '24 at 18:59