• Bug#1103502: iputils-ping: can't ping, operation not permitted

    From Lorenzo Bertini@21:1/5 to All on Fri Apr 18 10:40:01 2025
    Package: iputils-ping
    Version: 3:20240905-1
    Severity: normal
    X-Debbugs-Cc: lorenzo.bertini@posteo.com

    Dear Maintainer,

    any ping fails with:

    ping: socktype: SOCK_RAW
    ping: socket: Operazione non permessa
    ping: => missing cap_net_raw+p capability or setuid?

    I have been experiencing this problem since a year. I also found it on forums, so it should be fairly common.


    -- System Information:
    Debian Release: trixie/sid
    APT prefers testing
    APT policy: (500, 'testing')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.12.21-amd64 (SMP w/16 CPU threads; PREEMPT)
    Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)

    Versions of packages iputils-ping depends on:
    ii libc6 2.41-6
    ii libcap2 1:2.75-6
    ii libidn2-0 2.3.8-2

    Versions of packages iputils-ping recommends:
    pn linux-sysctl-defaults <none>

    iputils-ping suggests no packages.

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Hofstaedtler@21:1/5 to Lorenzo Bertini on Fri Apr 18 14:50:01 2025
    Not the maintainer, just chiming in.

    On Fri, Apr 18, 2025 at 10:32:45AM +0200, Lorenzo Bertini wrote:
    any ping fails with:

    ping: socktype: SOCK_RAW
    ping: socket: Operazione non permessa
    ping: => missing cap_net_raw+p capability or setuid?

    I have been experiencing this problem since a year. I also found it on forums, so it should be fairly common.

    Versions of packages iputils-ping recommends:
    pn linux-sysctl-defaults <none>

    You either need to install this package (and reload sysctls /
    reboot), or set the equivalent sysctl settings yourself. This will
    allow ping to run without extra permissions.

    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)