Re: low level ethernet device access in linux



On 2007-08-31, Tom Brown <brown@xxxxxxxxxx> 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 ...
.



Relevant Pages

  • low level ethernet device access in linux
    ... self.s = socket(AF_PACKET, SOCK_RAW, proto) ... as a user and not as root. ... Is there a way to create a socket without running the app. ...
    (comp.lang.python)
  • Re: Dependency tracking application
    ... this with a regular dimension or parent-child ... required to actively Use the app. ... An app cannot exist sans a server. ... Baring that, I think the server would be at the root, and the apps ...
    (microsoft.public.sqlserver.olap)
  • Re: Converting ASP site to .NET
    ... you limit how and where your app ... > Previously I had my server set up so that the root folder of my web was ... > So I changed IIS to use "wwwroot" as my home directory and using VS ... > Should I just replace my absolute paths with relative paths? ...
    (microsoft.public.dotnet.general)
  • Re: su, sudo, ssh, permissions question
    ... > The app does hw and system file access, so needs root priviledge. ... > Remote login is provided using ssh for admin. ... > allows me to autologin as root (if root has no pwd), ...
    (alt.os.linux.redhat)
  • Re: Password problems
    ... There is no root account on this box. ... will with the new root passwd, and if you can su to root ... Use a gtk app that asks for the root ...
    (Debian-User)