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 03-22-2006, 02: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, 03:01 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

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, 03: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, 03:56 AM   #4
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 38
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 04:00 AM.
 
Old 03-23-2006, 01: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



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

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

All times are GMT -5. The time now is 06:43 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
Open Source Consulting | Domain Registration