Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

low level ethernet device access in linux


  • From: grante at visi.com (Grant Edwards)
  • Subject: low level ethernet device access in linux
  • Date: Fri, 31 Aug 2007 17:33:25 -0000

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?

Yes.

According to the raw(7) man page:

   ERRORS

      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 ...