Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/g5ostxa/sysctl

Kernel params for linux systems
https://github.com/g5ostxa/sysctl

kernel linux security sysctl

Last synced: about 1 month ago
JSON representation

Kernel params for linux systems

Awesome Lists containing this project

README

        

## ⚙️ sysctl hardening

#### Usage:

- Clone the repository
```
$ git clone --depth 1 https://github.com/g5ostXa/sysctl.git
```
- Copy sysctl files to `/etc/sysctl.d/`
```
$ sudo cp -r sysctl/* /etc/sysctl.d/
```
- Give root permissions to the directory and all it's content
```
$ sudo chown -R root:root /etc/sysctl.d/; sudo chown -R root:root /etc/sysctl.d/*
```
To print current permissions, type the following code in your terminal
```
$ stat -c "%a %n" /etc/sysctl.d/*
```
If needed, change permissions to "600" for everything in `/etc/sysctl.d/`
```
$ sudo chmod 600 /etc/sysctl.d/*
```
- Finally, apply kernel parameters permanently
```
$ sudo sysctl --system
```