Tomcat8 should run with the same user that installs OpenCGA. We will assume that OpenCGA will be installed with user opencga
. Run the following to set Tomcat8 to run with user opencga
.
cd /var/lib/tomcat8/
# Change owner and group of every folder following links
sudo chown -RL opencga:opencga ./*
sudo service tomcat8 stop