LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-22-2006, 03:31 AM   #1
matchgirl
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Rep: Reputation: 0
Basic Security


Hey Everyone,

I had formatted my server to Linux 9 thrice, but it always get hacked after a couple of months.

As I am still a newbie, I do hope you can give me some advice as to how to configure or install any basic security features.

Please kindly include the steps in details. Thank you so much.

Regards,
MatchGirl
 
Old 03-22-2006, 04:01 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
By Linux 9 I'll assume you mean Redhat 9? Upgrade, that distro is only about 7 years old...or so.
 
Old 03-22-2006, 04:17 AM   #3
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
That's a wide question and the full answer depends on your system, environment, use, knowledge, etc. Actually there might be as many full answers as people who are willing to answer

Here are some very basic, very simple advices as a start point...
  1. first of all, as cs-cam pointed out, install an up-to-date distribution and keep it up-to-date (kernel, software, etc...) using the distro update tool (yum, apt, up2date, emerge, etc.)
  2. set a Real root password (other than '000' or 'abcde' or 'john' or your birthdate or your pussycat name... preferably one containing a mix of lower and upper case letters and digits like 'Hf4gpvJ8')
  3. set real passwords for other users as well
  4. keep all those passwords in your head and not anywhere else
  5. make sure telnet and rsh services are disabled (those can be used to connect remotely sending cleartext passwords)
  6. for other services, disable all those you're not using (samba, ftp, http, ssh, nfs, etc...)
  7. for those services you're using and did not disable, pay particular attention to their configuration (non exhaustive list of examples: disable root login for ftp and ssh, disable write ftp access for anonymous users...)
  8. eventually add a firewall that will block all ports (outgoing or incoming) which are not used. If you connect to internet through a router on a private lan, disable dmz on your router and forward to your machine only needed ports.
 
Old 03-22-2006, 04:56 AM   #4
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
for ssh:
Disable Direct Root Logins & forcing the use of SSH protocol 2
RSA and DSA (keys) are protocols used for a more secure form of authentication than your password.

Last edited by muha; 03-22-2006 at 05:00 AM.
 
Old 03-23-2006, 02:21 AM   #5
matchgirl
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Talking

yes.. is Redhat 9..

okie.. thanks guys. i will try out all the methods stated above.
 
  


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
Basic Security? M$ISBS Linux - Security 6 10-28-2005 04:47 PM
basic security?? wrat Linux - Security 5 05-15-2004 03:55 AM
Basic Security questions with 2.4 and 2.6 MissMetal Linux - Security 2 04-22-2004 06:53 PM
Linux Basic security ickram General 4 03-07-2003 06:58 PM
Security Basic vcheah Linux - Security 2 01-08-2002 05:38 AM


All times are GMT -5. The time now is 08:09 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