Score:0

Which versions of Ubuntu share /etc/sysctl.conf compatibility?

cn flag

I am looking to secure my Ubuntu 18.04 LTS server and have found a nice script but it was designed for Ubuntu 20.04 LTS which includes changes to /etc/sysctl.conf. Which versions of Ubuntu (or linux in general) share /etc/sysctl.conf compatibility? Can I use the script's /etc/sysctl.conf for Ubuntu 20.04 on my Ubuntu 18.04?

Paul avatar
cn flag
Ask the script maintainer. You did not provide enough information to answer your question.
Nikita Kipriyanov avatar
za flag
Proper way to do such things is to add *override files* into `/etc/sysctl.conf.d/`. So in general, I'd advise you to **never** use scripts which change `/etc/sysctl.conf`, because this is the bad practice.
Score:1
cn flag

Instead, spend effort upgrading the distro, and getting applications to work on 20.04. As an added bonus, this gains you 2 more years of life.

Read sysctl documentation to get an idea about what each tunable the script tweaks does.

There is no guarantee that kernel settings are relevant or do the same thing to a previous version. In general, most are. sysctl, as a user interface to kernel settings, is relatively stable.

As a practical matter, write your settings to a drop in file, such as /etc/sysctl.d/tune.conf Very easy to install, compared to inserting lines in an existing file.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.