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 ....
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.
answered 07 Jul '10, 20:36