Wednesday, December 11, 2019

Sven Mollinga

Sven Mollinga

This is my personal tech blog. This is the place where I put up updates about my current projects.

Seperation from the root user is always a smart thing to do. Here is a small init script i made to do exactly this.

Compatible with: Ubuntu servers.
Git repo:

How to install
git clone
cd SysadminScripts
cp init_script /etc/init.d/{scriptname}
chmod +x /etc/init.d/{scriptname}

Open the new init script and change the following variables:

To add the script to the startup use the command:
update-rc.d {init script name} defaults

There is really not more to it. Of course you can tweak the file to add extra parameters and functions.