Skip to content

p0f run after boot or autostart without root/sudo #8

Description

Hi!

How can I run p0f in user mode with daemon without root privileges?
I use Ubuntu.

When exec:
pkexec p0f -u 6d6 -d -f '/home/6d6/fuck/p0f/p0f.fp' -s tcp -p
ALL works fine

When exec:
p0f -u 6d6 -d -f '/home/6d6/fuck/p0f/p0f.fp' -s tcp -p

error:
[+] Closed 1 file descriptor.
[+] Loaded 322 signatures from '/etc/p0f/p0f.fp'.
[+] Intercepting traffic on default interface 'enp5s0'.
[-] PROGRAM ABORT : pcap_open_live: enp5s0: You don't have permission to capture on that device (socket: Operation not permitted)
Location : prepare_pcap(), p0f.c:526

How can I fix it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions