LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2011, 02:39 AM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Rep: Reputation: 30
install barnyard for snort - which directory?


I normally install programs with yum but I have to download barnyard as a requisite for snort to detect instrusion attempts.
I downloaded barnyard and ran ./configure, make, make install, etc.

Where does the program get installed? I was running this as root so does it install it into /root/barnyard?

I have something in /usr/local/bin/barnyard - is that it?
 
Old 02-12-2011, 04:48 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by qwertyjjj View Post
I normally install programs with yum but I have to download barnyard as a requisite for snort to detect instrusion attempts.
Note you can run Snort perfectly w/o Barnyard. It's only needed if you choose unified logging which is more efficient and faster than plain text logging.


Quote:
Originally Posted by qwertyjjj View Post
I downloaded barnyard and ran ./configure, make, make install, etc.
Where does the program get installed? I was running this as root so does it install it into /root/barnyard?
I have something in /usr/local/bin/barnyard - is that it?
As a rule of thumb build packages or run "./configure, make" as unprivileged user to maintain integrity of the machine, not as root. Running "./configure --help" in any sane package should show a "--prefix=/usr/local" which you can also confirm by running "make -n install|grep sr/lo" ("-n" meaning --dry-run).
 
Old 02-12-2011, 09:36 AM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by unSpawn View Post
Note you can run Snort perfectly w/o Barnyard. It's only needed if you choose unified logging which is more efficient and faster than plain text logging.



As a rule of thumb build packages or run "./configure, make" as unprivileged user to maintain integrity of the machine, not as root. Running "./configure --help" in any sane package should show a "--prefix=/usr/local" which you can also confirm by running "make -n install|grep sr/lo" ("-n" meaning --dry-run).
If I run it as an unprivileged user then later when the program wants to run, some programs won;t run unless the files have user:group set to root so why not just install as root?
 
Old 02-12-2011, 10:54 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I'm talking about compiling software and building packages, not running the installed binaries.
 
Old 02-12-2011, 11:17 AM   #5
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by unSpawn View Post
I'm talking about compiling software and building packages, not running the installed binaries.
But when it's installed under user aaatest, all the files are owned by aaatest?
 
Old 02-12-2011, 12:53 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I said build packages or run "./configure, make" as unprivileged user not run "./configure; make; make install" as unprivileged user.
 
  


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
Problem installing snort. Stuck at Barnyard install Godsson Linux - Software 2 11-18-2009 01:05 PM
install snort 2.8 wajdislama Linux - Software 0 08-27-2008 04:09 AM
snort logging directory error on windows ilnli Linux - General 0 02-21-2005 02:50 AM
snort install kapslock Debian 3 08-23-2004 11:50 AM
how to install SNORT on RH 7.2?? StamfordRob Linux - Newbie 5 03-25-2002 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:13 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