Why can only root do do SOCK_RAW?

S

showdog

Guest
I have known about only root or a setuid binary having net_raw permissions but why is that? Thank you for any help.
 


I have known about only root or a setuid binary having net_raw permissions but why is that? Thank you for any help.
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.
 

Staff online


Top