LinuxQuestions.org
Register a domain and help support LQ
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 07-07-2010, 12:13 PM   #1
khirodpatra
LQ Newbie
 
Registered: Nov 2009
Distribution: debian,ubuntu,redhat
Posts: 10

Rep: Reputation: 0
How to Start process automatically


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
 
Old 07-07-2010, 02:22 PM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 96
man sudoers
then within script:
Code:
sudo snort
 
Old 07-07-2010, 02:45 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,919

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by khirodpatra View Post
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
Be glad to help you, but we're not going to write your script for you. Post what you've written, version/distro of Linux, and where you're getting stuck, and we can help.
 
Old 07-08-2010, 03:43 AM   #4
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
This might help if you are using ubuntu.... you can make the sudo not ask for password

http://tuxthink.blogspot.com/2010/05...-password.html

to read more on SUDO
https://help.ubuntu.com/community/RootSudo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
process to automatically start bittorrent download zux Slackware 4 04-27-2010 05:00 PM
[SOLVED] How can I get conky start automatically when I start fvwm? ggyyree Linux - Newbie 10 11-04-2009 10:51 AM
Controlling which process start automatically at startup austinium Linux - Newbie 4 03-11-2008 08:31 PM
How to start bash commands automatically every time I start the computer brgsousa Linux - Software 2 10-18-2007 12:26 PM
login regular but start a server process automatically after reboot powah Linux - Newbie 6 05-24-2005 08:21 AM


All times are GMT -5. The time now is 01:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration