Permissions / Ownership

Thanks for the reply.

I installed Turnkey and then installed MineOS following broadly the guides available in the wiki and on github (they aren’t mutually consistent and based on experience I have adapted them to make it work on my system, a QNAP NAS).

Once Turnkey is installed, all defaults except I change to a fixed ip address and change the keyboard config etc. then :

apt update
apt-get upgrade
apt upgrade
apt install -y openjdk-8-jre-headless
curl -sL https://deb.nodesource.com/setup_11.x bash -

apt-get install -y nodejs
apt-get update
apt-get install -y git supervisor rdiff-backup screen build-essential

mkdir -p /usr/games
cd /usr/games
git clone https://github.com/hexparrot/mineos-node.git minecraft
cd minecraft
git config core.filemode false

chmod +x service.js mineos_console.js generate-sslcert.sh webui.js

npm install --unsafe-perm
npm install userid --unsafe-perm
npm audit fix

ln -s /usr/games/minecraft/mineos_console.js /usr/local/bin/mineos

cp mineos.conf /etc/mineos.conf
cd /usr/games/minecraft

./generate-sslcert.sh
cp init/supervisor_conf /etc/supervisor/conf.d/mineos.conf

adduser mc
adduser [your name]

usermod –a –G minecraft mc
usermod –a –G minecraft [your name]

apt-get install sudo

usermod –a –G sudo [your name]

iptables –P INPUT ACCEPT 
iptables –A INPUT –p tcp -m tcp --dport 22 –j ACCEPT 
iptables –A INPUT –p tcp –m tcp --dport 8080 –j ACCEPT 
iptables –A INPUT –p tcp -m tcp --dport 8443 –j ACCEPT 
iptables –A INPUT –p tcp -m tcp --dport 25565 –j ACCEPT 
[ *iptables –A INPUT –p tcp -m tcp --dport 255* *xx* *–j ACCEPT* ] 
[xx continue to add ports until there are enough for the number of servers you want to create]

iptables –A INPUT –m state --state ESTABLISHED,RELATED –j ACCEPT 
iptables –P INPUT DROP 
iptables-save > /etc/iptables-rules 
iptables-restore < /etc/iptables-rules 

vi /etc/rc.local (or nano / *etc/* rc.local) 
Add -  iptables-restore < /etc/iptables-rules

cd /usr/games/minecraft
chown -R [user]:minecraft
cd /var/games/minecraft
chown -R [user]:minecraft

supervisorctl reread
supervisorctl update
supervisorctl start mineos

Reboot and logon as [your name]
https://192.168.1.xxx:8443/

Thanks again.