Score:0

/etc setting to ping as non-root freely

cn flag

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.

Doug Smythies avatar
gn flag
what do you have in `/usr/lib/sysctl.d/50-default.conf`? I have `-net.ipv4.ping_group_range = 0 2147483647` and indeed `cat /proc/sys/net/ipv4/ping_group_range` gives `0 2147483647`. Which version of Ubuntu?
chili555 avatar
cn flag
What does this tell us? `ls -al /usr/bin/ping`
midenok avatar
cn flag
@DougSmythies No such file, no such setting. Which package it's from? Please post an answer.
midenok avatar
cn flag
If there are problems with your bootup, it is always `systemd`. 249.11 has `50-default.conf` while 251.4 don't have it. Either I should downgrade or get the copy of the file, will decide later.
midenok avatar
cn flag
@DougSmythies Thanks!
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.