Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today!
Try Our New Product Showcase!
Find the answer to your Linux question:
Advertisement
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Ubuntu Help > Snort configure on Ubuntu 8.10. NEED HELP!!

Forgot Password?
 Ubuntu Help   Discussion and help about Ubuntu, Kubuntu, Xubuntu, and all the Ubuntu family

Site Navigation
Linux Forums
Linux Articles
Product Showcase
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Free Publications




Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 10-29-2008   #1 (permalink)
Just Joined!
 
Join Date: Oct 2008
Posts: 11
Snort configure on Ubuntu 8.10. NEED HELP!!

Hi guys, I am new to all this. Been trying out what Linux OS to flow with to run Snort on for our network. Seems like I have chosen a newer setup it seems and I am going on a list of instructions on a paper written by someone. I currently running Ubuntu 8.10 with Snort 2.8.3.1. I get along the way d/l things and getting them prepared to install and configure. I start getting into snort install. I run the following command line.

./configure -enable-dynamicplugin --with-mysql

Once I do that, It configures itself. Then I do this...

# make

Once I hit that, it runs down a list of things it is making. Then it runs into a few errors.

In function ‘open’,
inlined from ‘server_stats_save’ at server_stats.c:349:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[5]: *** [server_stats.o] Error 1
make[5]: Leaving directory `/root/snorttmp/snort-2.8.3.1/src/preprocessors/flow/portscan'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/root/snorttmp/snort-2.8.3.1/src/preprocessors/flow'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/snorttmp/snort-2.8.3.1/src/preprocessors'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/snorttmp/snort-2.8.3.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/snorttmp/snort-2.8.3.1'
make: *** [all] Error 2


Can anyone tell me how to fix this problem or do I need to go with a stable version of Snort? Any help would be nice since I am new to this and my boss is wanting this done soon.
shootlessjoe is offline  



Reply With Quote
Old 11-14-2008   #2 (permalink)
Just Joined!
 
Join Date: Nov 2008
Posts: 1
You must be root to perform the following procedure. You may also open the file below and save it in your home folder, then copy it (as root) to its original directory (../snort2.8.*/src/preprocessors/flow/portscan/).

After "./configure --with-mysql --enable-dynamicplugin", locate the file "server_stats.c" in "../snort-2.8.*/src/preprocessors/flow/portscan/" and open it in a text editor or IDE. Identify the following section:
Code:
int server_stats_save(SERVER_STATS *ssp, char *filename)
In this section, identify the line:
Code:
fd = open(filename, O_CREAT|O_TRUNC|O_SYNC|O_WRONLY);
and change it to:
Code:
fd = open(filename, O_CREAT|O_TRUNC|O_SYNC|O_WRONLY, 0666);
Then you may run "make && make install".

I am still trying to sort out a few other problems relating to MySQL, but this certainly solves the problem that you described above.
MSchadone is offline   Reply With Quote
Old 11-17-2008   #3 (permalink)
Just Joined!
 
Join Date: Oct 2008
Posts: 11
Ah, thank you for that. I thought it was me for a second and now that there is a code to fix I should be able to run it here soon. Just hope I didn't wipe my box down.
shootlessjoe is offline   Reply With Quote
Old 11-19-2008   #4 (permalink)
Just Joined!
 
Join Date: Oct 2008
Posts: 11
Funny thing is that when I try to do this, I am using the root powers but as myself. I still can't get it to work, says I am denied.
shootlessjoe is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Implementing Detailed User-Level Auditing of UNIX & Linux Systems
Enhance regulatory compliance and troubleshooting through detailed auditing, logging and real-time monitoring of UNIX/Linux user activity.
subscribe
Linux from Scratch - Receive Your Complimentary eBook NOW!
Linux from Scratch describes the process of creating your own Linux system from scratch from an already installed Linux distribution, using nothing but the source code of software that you need.
subscribe
A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)
Getting Started with Ubuntu 10.04 (Lucid Lynx) is a comprehensive beginners guide for the Ubuntu operating system; it features comprehensive guides, How Tos and information on anything you need to know after first installing Ubuntu.
subscribe
The Incredible Guide to NEW Ubuntu (Karmic Koala)
There are a lot of people still stuck with Windows because it's the ‘easier alternative'. Linux is both cheaper and more versatile than Microsoft's operating system, but the learning curve has frightened off many people.
subscribe
The GNU/Linux Advanced Administration
The GNU/Linux systems have reached an important level of maturity, allowing to integrate them in almost any kind of work environment, from a desktop PC to the sever facilities of a big company.
subscribe
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe



All times are GMT. The time now is 07:27 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1