Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Like I said in the title, I'm new to Linux and I'm loving every second of it! The thing is though, a friend and I got into a little heated debate about the security between Linux and Windows. I said that Linux was more secure because of the root user, while he claimed that Windows is more secure b/c of blah blah blah. We finally agreed to disagree about the whole situation, but can anyone explain to me in detail why Linux is more secure than Windows? Links would be helpful. I'm talking about desktops and servers by the way.
Also, is it hard to set up security on a server using Linux? What would be the best distro to use for servers?
I would say linux is better as it is more rare to find malware, trojans and viruses. Also, with the different standards in linux...paths vary from location to location...who would want to write something over-and-over. For instance the home path is in one place on Ubuntu and another in SUSE, and yet another in Slack, BSD...so forth.
Click on search at the top of this page, do "linux vs windows" and you will get a few days worth of reading.
System security is mainly dependant on the system administrator. A misconfigured Linux/BSD box could be more vulnerable then a default install of Windows Server 2003 w/o any service packs. Vulnerable third-party programs can also lead to a comprimise of a system regardless if it is Windows or *nix. If you want to learn about Linux security view the sticky Security references thread. IMO, locking down Linux/BSD is much easier then trying to lockdown Windows; I'm refering to using the built-in mechanisms & features here and not third-party apps. Windows Server 2003 is a more secure (that I am aware of) of an OS compared to the previous incarnations of Windows 2K/NT, but would you trust a Windows machine, with a gui & other uneeded services running, to act as a firewall for your network or would you trust in a *nix OS like OpenBSD/Debian which can be stripped down to the bare essentials and include a advance firewall in the box? As for the best distro to use for servers use whatever you are familiar with. If you really want a recommendation try Ubuntu Server or CentOS. Personally I would go with Debian or FreeBSD.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.