SiloCityLabs / lochnas

Docker configuration for all-in-one nas setup
https://lochnas.com
GNU General Public License v3.0
51 stars 3 forks source link

Root check #48

Closed ldrrp closed 2 years ago

ldrrp commented 2 years ago

Problem

If the user starts the server withouth root privileges, the server will not be able to start properly.

Solution

Check to make sure the program is running as root in main() and exit if not

Steps to Reproduce the Problem

  1. ./server.bin