Installed tomcat for the first time on my system, and when trying to start got a lot of permissions denied errors. It appears the ebuild adds the user and group for tomcat after it tries to chown the directories. Here is the output from the logs: >>> Install tomcat-5.0.28-r4 into /var/tmp/portage/tomcat-5.0.28-r4/image/ category www-servers chown: `tomcat:tomcat': invalid user chown: `tomcat:tomcat': invalid user chown: `tomcat:tomcat': invalid user chown: `tomcat:tomcat': invalid user chown: `tomcat:tomcat': invalid user chown: `tomcat:tomcat': invalid user man: prepallstrip: strip: x86_64-pc-linux-gnu-strip --strip-unneeded strip: x86_64-pc-linux-gnu-strip --strip-unneeded >>> Completed installing tomcat-5.0.28-r4 into /var/tmp/portage/tomcat-5.0.28-r4/image/ * Adding group 'tomcat' to your system ... * - Groupid: next available * Adding user 'tomcat' to your system ... * - Userid: 102 * - Shell: /bin/false * - Home: /dev/null * - Groups: tomcat Reproducible: Always Steps to Reproduce: 1.Make sure user and group tomcat don't 2.emege tomcat 3.try to start tomcat Actual Results: * Starting Tomcat... Using CATALINA_BASE: /var/lib/tomcat-5/default Using CATALINA_HOME: /usr/share/tomcat-5 Using CATALINA_TMPDIR: /var/tmp/tomcat-5/default Using JAVA_HOME: /opt/blackdown-jdk-1.4.2.01 touch: cannot touch `/var/lib/tomcat-5/default/logs/catalina.out': Permission denied /usr/share/tomcat-5/bin/catalina.sh: line 228: /var/lib/tomcat-5/default/logs/catalina.out: Permission denied [ ok ] Expected Results: create the user and group before trying to chown the direcotries. workaround would be to emerge tomcat a second time, then the chown would work. or manually chown the direcotries.
fixed in cvs, thanks for reporting