low level ethernet device access in linux

Grant Edwards grante at visi.com
Fri Aug 31 19:33:25 CEST 2007

On 2007-08-31, Tom Brown <brown at esteem.com> wrote:

> I understand that I am getting this error because I am running
> the application as a user and not as root. I would like to be
> able to run this app. as a user. Is there a way to create a
> socket without running the app. as root or sudo?


According to the raw(7) man page:


      EPERM The user doesn't have permission to open raw
            sockets.  Only pro- cesses with a effective user
            ID of 0 or the CAP_NET_RAW attribute may do that.

Anticipating your next question:

 $ man capabilities

Grant Edwards                   grante             Yow! Well, I'm INVISIBLE
                                  at               AGAIN ... I might as well
                               visi.com            pay a visit to the LADIES
                                                   ROOM ...

More information about the Python-list mailing list