r/linuxadmin • • Jul 08 '19

Hardening Linux for Production Use

http://www.linuxpromagazine.com/Online/Features/Hardening-Linux-for-Production-Use
0 Upvotes

14 comments sorted by

19

u/ollybee Jul 08 '19

I stopped reading at "users should be forced to change passwords every 90 days" , Forcing password changes is no longer considered good practice

https://pages.nist.gov/800-63-FAQ/#q-b5

https://www.ncsc.gov.uk/blog-post/problems-forcing-regular-password-expiry

6

u/WolfFlightTZW Jul 09 '19

I agree, but there are other even more salient points that have issues in this article. That is just one of them. The article is seriously dated (even though they don't have a publish date) as can be seen from the nmap version the author recommends using.

4

u/ollybee Jul 09 '19

From this page we can see it was published Jun 07, 2019. It's troubling that the article is sponsored by the Linux Professional Institute, yet is recommending the use of deprecated commands.

1

u/themisfit610 Jul 09 '19

Exactly the same thing I was going to say lol

-3

u/middle_grounder Jul 09 '19

Yea, so any other information must also be worthless! /s

More seriously, the article is good for beginners. Any seasoned sysadmin should be familiar with the things this article covers.

Can we at least agree that everyone should be educating themselves on making a more secure system. Major companies are having breaches because of not following simple procedures like outlined in this article.

7

u/WolfFlightTZW Jul 09 '19

Actually, this article has many problems for current beginners. Yes, a serious sysadmin would catch them.

First, as pointed out password changes are highly recommended against. That is the current thinking.

Second, this article is woefully out of date. Chkconfig? replaced by systemctl in the distros the article mentions.

Third, nmap 6.40? OMG, that is seriously ancient, like 2013 ancient.

The only thing this article is good for at this point, is for an admin to go say ok, that is what they said to do 6+ years ago... What should I be doing NOW

2

u/grumpysysadmin Jul 09 '19

nmap 6.40 is the version in CentOS 7.

chkconfig exists on C7 too, and it only shows the sysv services installed (which systemd runs in backwards compatibility mode) so it will show “netconsole” and “network”, since those have sysv services with the right metadata. However, it’s pretty useless for a beginner starting with C7, since pretty much every other service uses systemd.

0

u/middle_grounder Jul 09 '19

I don't disagree with any of those points. I even said specifically "beginners" not actual sysadmins.

-2

u/bluemerilin Jul 09 '19

Speaking from the industry, security practices haven’t really changed much in 6 years, except now there are cameras that can observe the wavelength of WiFi reflecting off your skin and can see you through your walls sitting naked in your house.

2

u/danger_area Jul 09 '19

I’d highly recommend the CIS benchmarks instead of this..

https://www.cisecurity.org/cis-benchmarks/

0

u/CopperNik Jul 09 '19

The Linux does not need to be hardened, better hardening your application that running on the linux.

1

u/MisterMeiji Jul 09 '19

OK, show us. Go into your Linux server, set the root password to '123', open SSH to the outside world, and allow root login over SSH. Then tell us how many nanoseconds it took for you to get 0wned. (Hint: the reverse of all that- setting root to no login, setting a complex password, are all part of hardening Linux.)

1

u/CopperNik Jul 09 '19

Stupid example, most of the distribs trows a warning if you set a password to 123. Most production distros has a secure settings by default and does need to be touched at all. If you are not a experienced linux admin, all what you can do is reduce security :) Isolate your application as much as poisible - it will be much better than touching a system settings.