Thanks for your response.
I came across basically 2 types of guides online for CentOS/RHEL 8 and
Tomcat 9. Half used /usr/share/tomcat the other half /opt/tomcat. I guess I
had a 50/50 shot at it but what you say makes sense and sparks vague
memories of opt likely being the better option for "self installed" stuff.
As for it all being under 1 directory, I think the /var and /etc stuff was a
product of using the tomcat 7 package in CentOS 7.x. Idk if that was a
product of how the rpm was packaged or if thats just how tc 7 worked but it
does make sense for me to keep it all in a singular place. You may notice a
handful of symlinks in my 7.x script which I honestly lost track of the
"why" a long time ago.
"Not for Guacamole specifically, but you should *definitely* change
permissions of the directory to a non-root user"
Which directory are we talking about, /opt/tomcat ?
I am currently creating the tomcat user/group as follows:
groupadd --system tomcat
useradd -d /usr/share/tomcat -r -s /bin/nologin -g tomcat tomcat
chown -R tomcat:tomcat /usr/share/tomcat
chown -R tomcat:tomcat /usr/share/apache-tomcat-${TOMCAT_VER}/
Does this look good or should I change it? (I will likey change path to
/opt/tomcat)
For guac I am creating a user, like this:
# Create a user and group for guacd with a home folder but no login
groupadd ${GUACD_USER}
# The guacd user is created as a service account, no login but does get a
home dir as needed by freerdp
useradd -r ${GUACD_USER} -m -s "/bin/nologin" -g ${GUACD_USER} -c
${GUACD_USER}
# Set the user that runs the guacd service
sed -i "s/User=daemon/User=${GUACD_USER}/g"
/etc/systemd/system/guacd.service
Hopefully I am getting those 2 things correct.
Actually, if you would not mind, I could very much use input on where I am
installing Guacamole to in the script. Since we are talking about the
placement of Tomcat and its directories and Guacamole will at least
partially co-exist with it, its likely time to review both and
simplify/correct it now.
The link is:
https://github.com/Zer0CoolX/guacamole-install-rhel/blob/master/guac-install.sh
Specifically interested on your take for my placement of Guacamole and its
directories along with the presumption of Tomcat in /opt/tomcat. To make it
easier to review it may be ideal to focus on the variables LIB_DIR and
INSTALL_DIR and code in the ranges ~1088-1276, maybe a little beyond that
too.
Based on what you said so far, I am wondering if I should be doing
/opt/guacamole and /opt/tomcat vs what my 7.x script does.
Lastly, I think Guacamole is an excellent bit of software. My hope is that
my script(s) can help make it more widely accessible to people who may
benefit from such an excellent tool as Guac. With the help of knowledgeable
people like yourself I am hopeful that the script can help out many people.
Thanks!
--
Sent from:
http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]