LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-02-2016, 01:45 PM   #1
BMWSterling
LQ Newbie
 
Registered: Nov 2016
Posts: 5

Rep: Reputation: Disabled
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?
 
Old 11-02-2016, 01:49 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
What OS are you running? Centos? Ubuntu?

Try:
Code:
which barnyard2
 
Old 11-02-2016, 01:59 PM   #3
BMWSterling
LQ Newbie
 
Registered: Nov 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
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!
 
Old 11-02-2016, 02:01 PM   #4
BMWSterling
LQ Newbie
 
Registered: Nov 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
What OS are you running? Centos? Ubuntu?

Try:
Code:
which barnyard2
I replaced sudo with which and it doesn't do anything.
 
Old 11-02-2016, 02:06 PM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Have you installed barnyard?
 
Old 11-02-2016, 02:09 PM   #6
BMWSterling
LQ Newbie
 
Registered: Nov 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
Have you installed barnyard?
I have installed Barnyard yes.
 
Old 11-02-2016, 02:20 PM   #7
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
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.
 
Old 11-02-2016, 02:30 PM   #8
BMWSterling
LQ Newbie
 
Registered: Nov 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Command not found" on my server? “bash: sudo: command not found”? MilesOfRoses Linux - Server 7 04-01-2016 09:19 AM
sudo cd /root gives 'sudo: cd: command not found'. stf92 Linux - Newbie 4 03-03-2012 09:05 AM
[SOLVED] sudo ... command not found PlatformIndependentBoy Linux - Server 7 08-06-2010 12:44 PM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
sudo: readme : command not found vishal.thorat Linux - Security 3 07-17-2003 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration