Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

Hi,

I want to start process automatically For Ex:-

To start snort it need the root user, So here I need a script which will start snort automatically without asking the root user or password.So that I can start snort from anywhere as same as root

Please help me ....

Kind Regards

Khirod Patra

asked 07 Jul '10, 16:02

khirod's gravatar image

khirod
112
accept rate: 0%

edited 07 Jul '10, 16:16

Good question for newer users of Linux. Linux is very powerful and very enjoyable.

(09 Jul '10, 20:01) Andy



If you need to have snort started automatically at boot time, add the snort startup commands to the startup scripts. They can be found in /etc/rc.d for Slackware, /etc/rc4.d for other distros, or even /etc/init.d.

If you need to start it manually at different times, set up sudo so you can run snort. As root, use visudo to edit the sudo config file and set up your user to be allowed to run snort. There are plenty of good examples in the config file. Then as your normal user, you can type "sudo snort" or whatever the snort commands are.

link

answered 07 Jul '10, 20:36

codebunny's gravatar image

codebunny
40816
accept rate: 38%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×16

Asked: 07 Jul '10, 16:02

Seen: 1,580 times

Last updated: 07 Jul '10, 20:36

powered by OSQA