LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   sudo: barnyard2: command not found (https://www.linuxquestions.org/questions/linux-security-4/sudo-barnyard2-command-not-found-4175592747/)

BMWSterling 11-02-2016 01:45 PM

sudo: barnyard2: command not found
 
After I do this command:

sudo barnyard2 -c /etc/snort/barnyard2.conf -d /var/log/snort -f snort.u2 -w /var/log/snort/barnyard2.waldo -g snort -u snort

For some reason it tells me that barnyard2 command isn't found. Can someone help me with this problem?

szboardstretcher 11-02-2016 01:49 PM

What OS are you running? Centos? Ubuntu?

Try:
Code:

which barnyard2

BMWSterling 11-02-2016 01:59 PM

Quote:

Originally Posted by szboardstretcher (Post 5626196)
What OS are you running? Centos? Ubuntu?

Try:
Code:

which barnyard2

I'm using Ubuntu and I will try that now thanks for the quick response!

BMWSterling 11-02-2016 02:01 PM

Quote:

Originally Posted by szboardstretcher (Post 5626196)
What OS are you running? Centos? Ubuntu?

Try:
Code:

which barnyard2

I replaced sudo with which and it doesn't do anything.

szboardstretcher 11-02-2016 02:06 PM

Have you installed barnyard?

BMWSterling 11-02-2016 02:09 PM

Quote:

Originally Posted by szboardstretcher (Post 5626208)
Have you installed barnyard?

I have installed Barnyard yes.

szboardstretcher 11-02-2016 02:20 PM

How did you install it? Did you do it from source or repository?

At first glance, it looks like you either didn't install it, or the installation did not set up the binary in the PATH correctly.

BMWSterling 11-02-2016 02:30 PM

Quote:

Originally Posted by szboardstretcher (Post 5626211)
How did you install it? Did you do it from source or repository?

At first glance, it looks like you either didn't install it, or the installation did not set up the binary in the PATH correctly.

I installed it from a source I believe. http://sublimerobots.com/2014/12/ins...-snort-part-4/

Is it a way for me to set up the binary path correctly?


All times are GMT -5. The time now is 12:39 PM.