Ask Experts Questions for FREE Help !
Ask
    LTheobald's Avatar
    LTheobald Posts: 1,051, Reputation: 127
    Ultra Member
     
    #1

    Mar 7, 2005, 06:28 AM
    Linux - Security Tips?
    Hi all,

    I've decided to try and completely switch from Windows to Linux. One of the main things I will be doing on the PC is some web development and using the PC as a web server. I may also host some game servers on the PC occasionally. Now all this will mean that my PC will have to be accessible to the outside world and this means that my security will have to be good.

    Does anyone have any general security tips for Linux that'll help me make sure I don't leave myself open for anything? I'm sure I remember a well respected lecturer of mine telling a class last year that "... Windows was more secure than Linux out of the box but Linux had the ability to become much, much more secure."

    Thanks for any input,
    Lee


    P.S. If someone feels this should be in security not OS, feel free to move it.
    psi42's Avatar
    psi42 Posts: 599, Reputation: 13
    Senior Member
     
    #2

    Mar 7, 2005, 04:45 PM
    Hmm, okay:

    A few basic things you can do:

    1) _never_ run a program as root when it is not necessary.
    2) Disable any unnecessary services. If you don't need a DNS server, don't turn it on.
    3) If possible, get the machine behind a hardware firewall.
    4) Be sure to patch your software...
    5) Disable root login for ssh, if you choose to run ssh.
    6) Run rkhunter regularly. You might also want to run tripwire. And snort, if you have the time to go through the logs. :)
    7) Pick good passwords.

    I'm sure I remember a well respected lecturer of mine telling a class last year that "... Windows was more secure than Linux out of the box but Linux had the ability to become much, much more secure."
    Without knowing the context of that quote, I'm not going to pass any judgment, but "out of the box" security is largely distribution-dependent...


    http://www.tldp.org/HOWTO/Security-HOWTO/



    Anyway, good luck with your switch. It's worth it.

    Here is my clunky webserver, if you're interested: http://www.himring.homelinux.org
    LTheobald's Avatar
    LTheobald Posts: 1,051, Reputation: 127
    Ultra Member
     
    #3

    Mar 8, 2005, 02:33 AM
    Cheers PSI. Linux here I come!
    thebriggsdude's Avatar
    thebriggsdude Posts: 1,096, Reputation: 53
    Ultra Member
     
    #4

    Mar 8, 2005, 08:15 PM
    Good your making the switch, linux is by far more stable as well, you can run a server for months without restarting on it. But its good to have hardware and good software protection like psi said

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Linux [ 3 Answers ]

I am using VI editor at work to try to compile my programs for school in C. When I compile I get the file a.out. When I do this on the school's site I am able to just type a.out in the command line and it runs. They are using AIX (whatever that means). I cannot do that here. It keeps saying no such...

Linux [ 5 Answers ]

I have a saa7134 TV cards .my linux (kernal 2.6)not configure for this TV cards.pls help me

Linux to Mac [ 3 Answers ]

How do I get this Linux PC talking to my old Mac? I have Mandrake 9.2 and KDE desktop. The Mac is has a Power PC chip and is running Mac 7.6.1. I have a Belkin router 4 port router hard wired to both of them by ether net. The router feeds my cable modem to both. Since a driver for my HP...

Getting linux [ 1 Answers ]

Hi It's me again. First of all let me thank all the experts that have helped me with my problems. "THANK YOU GUYS" I ran all different sorts of scans on the computer and now it's running faster because all the rubbish files are deleted and the spy sweeper has killed all the spies. One of the...


View more questions Search