LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help me !! Snort: ERROR: Can't start DAQ (-1) - socket: Operation not permitted! (https://www.linuxquestions.org/questions/linux-newbie-8/help-me-snort-error-cant-start-daq-1-socket-operation-not-permitted-4175634845/)

aini 07-24-2018 11:04 PM

Help me !! Snort: ERROR: Can't start DAQ (-1) - socket: Operation not permitted!
 
hi i'm using snort version 2.9.11.1 ,

i can't run my snort log by using this command

ubuntu@ubuntu-16:/etc$ snort -A console -q -c /etc/snort/snort.conf -i ens3

ERROR: Can't start DAQ (-1) - socket: Operation not permitted! Fatal Error, Quitting..

Can someone suggest the best solution to this problem?

AwesomeMachine 07-25-2018 12:37 AM

Hi aini,

Welcome!

You have to start it as root and then drop permissions using the -u and -g switches. The user that starts snort needs to open a socket.

aini 07-25-2018 01:59 AM

hi Awesomemachine,
thanks for your suggestion.

i'm really sorry i don't understand, can u briefly describe about it?

TB0ne 07-27-2018 06:59 AM

Quote:

Originally Posted by aini (Post 5883382)
hi Awesomemachine,
thanks for your suggestion. i'm really sorry i don't understand, can u briefly describe about it?

If you don't understand what the root user is, or how/why to use it, how are you able to install Snort?? Are you not the administrator?

You run "sudo <whatever command>" to execute it with root permissions. Or you run "su - root", enter the root password, and start whatever you want.

AwesomeMachine 07-27-2018 07:49 PM

If you don't understand my post, you'll need to familiarize yourself with the snort man page.

aini 07-31-2018 11:44 AM

Hi Awesomemachine and TBOne,

i've got it. I reinstall snort as root and i run my snort using this command,

sudo snort -A console -i ens3 -u snort -g snort -c /etc/snort/snort.conf

so now my snort can work properly.

Thanks for you help .


All times are GMT -5. The time now is 09:07 AM.