FW: [Snort-users] /etc/init.d/snort file, Snort 1.9.1

Elvira_Byrnes at ...8560... Elvira_Byrnes at ...8560...
Wed Apr 16 19:02:04 EDT 2003

Hi John

Thanks a lot for your suggestion. I tried that option already and it didn't
work. I have found an article saying that this error comes from using a
Windows made file on a Linux machine. This is what I did. I copied the file
in Windows from Internet and then copied it to Linux. Windows apparently
puts extra carriage returns that you can't see. The utility dos2unix changes
the file so it can be used by Linux. The file worked fine after that.



-----Original Message-----
From: John Sage [mailto:jsage at ...2022...]
Sent: Wednesday, 16 April 2003 10:53 PM
To: Elvira_Byrnes at ...8560...
Cc: snort-users at lists.sourceforge.net
Subject: Re: FW: [Snort-users] /etc/init.d/snort file, Snort 1.9.1


On or about Wed, Apr 16, 2003 at 10:39:06AM +1000,
Elvira_Byrnes at ...8560... posited:
> Hi Everybody
>  I am trying to configure three instances of Snort. I have three files
> snort_border, snort_lan, snort_dmz in /etc/init.d/. I get an error ":bad
> interpreter: No such file or directory" if I try to start, stop or
> The instances woudn't start during the startup of the machine. The error
> /var/log/messages is the same for every instance.

For giggles, try editing /etc/rc.d/init.d/snort_[whatever] to read:

#!/bin/sh <------
# $Id: S99snort,v 1.1 2001/12/18 22:14:37 cazz Exp $
# /etc/init.d/snort : start or stop the SNORT Intrusion Database System

rather than:

#!/bin/bash <------
# $Id: S99snort,v 1.1 2001/12/18 22:14:37 cazz Exp $
# /etc/init.d/snort : start or stop the SNORT Intrusion Database System

> The permissions on the thre files in /etc/init.d/ are -rwxr -xr -x owned
> root.
> Could you please look into the file and help me.

- John
"What's the frequency, Kenneth?"

    PGP key: http://www.finchhaven.com/pages/gpg_pubkey.html
Fingerprint: C493 9F26 05A9 6497 9800 4EF6 5FC8 F23D 35A4 F705

******************** Confidentiality Statement *************************** 

This message contains privileged and confidential information intended only
for the use of the addressee named above.  If you are not the intended
recipient of this message, you must not disseminate, copy or take any action
in reliance on it.  If you have received this message in error, please
delete it from your system and notify the sender immediately.  Any views
expressed in this message are those of the individual sender, except where
the sender specifically states them to be the view of the company.

More information about the Snort-users mailing list