Why can only root do do SOCK_RAW?

Discussion in 'Linux Networking' started by showdog, May 14, 2013.

  1. showdog

    showdog New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I have known about only root or a setuid binary having net_raw permissions but why is that? Thank you for any help.

  2. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,226
    Likes Received:
    414
    Trophy Points:
    83
    Sorry your post was never answered. Figures a spammer would be the one to bring it up.

    If we consider what the net_raw permissions are, net_raw permission are for low level connections network, then perhaps the systems you are using restrict network connection creation to only certain programs and users. IE for example the ping program may only be used by a privileged user.

    To change this behaviour, you may be able to edit /etc/group
    and add something like this:
    Code:
    inet:x:3003:root
    net_raw:x:3004:root
    and then change user permissions:
    Code:
    gpasswd -a username inet
    The only time I have seen these problems with Android and Arch.

Share This Page