LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-11-2004, 08:22 PM   #1
azebuski
Member
 
Registered: Jan 2004
Posts: 43

Rep: Reputation: 15
Automatically running commands


After setting up my firewall all of my ports are stealthed but according to some secrity test sites my computer was still replying to ping requests, which I've been told is one of the oldest methods used by hackers to find live machines connected to the Internet.

Someone here at Linux Questions told me to run "echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all"
as root. This works great, but how do I run this command automatically when I bootup or login so I don't have to type it in all the time? Which file shoud I add this command to? Sort of the autoexec.bat of the Linux world.

Thanks for any help, all you people are amazingly helpful!!!!
 
Old 02-11-2004, 08:50 PM   #2
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
It depends on the distro. I use Slackware and all commands to be run at startup are put in /etc/rc.d/rc.local. I'm sure users of other distros will chime in with what works for them.
 
Old 02-11-2004, 08:56 PM   #3
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
/me chimes in for SuSE...
here it's /etc/init.d/
 
Old 02-11-2004, 09:36 PM   #4
azebuski
Member
 
Registered: Jan 2004
Posts: 43

Original Poster
Rep: Reputation: 15
I found it. I'm running Red Hat Fedora (should have mentioned that) and I added it to /etc/rc.local. Works great. You guys pointed me in the right direction. Without you I wouldn't even have known to look in the /etc directory.


Last edited by azebuski; 02-11-2004 at 09:38 PM.
 
  


Reply



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
running scripts automatically skguha Linux - Newbie 4 08-03-2005 03:11 AM
automatically running KDE 3.1.4 cjheeney Linux - Newbie 2 04-29-2004 01:23 PM
cp and rm commands automatically overwrite m_yates Debian 2 04-04-2004 09:59 PM
running commands automatically via SSH tpfraz Linux - General 1 02-13-2004 09:12 AM
automatically running commands... lhoff Linux - General 9 02-21-2002 02:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:07 AM.

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
Open Source Consulting | Domain Registration