Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 93322

Summary: fresh install of tomcat creates uid/gid after trying to chown
Product: Gentoo Linux Reporter: Brett Johnson <brett>
Component: New packagesAssignee: Jan Brinkmann (RETIRED) <luckyduck>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Brett Johnson 2005-05-20 05:54:37 UTC
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.
Comment 1 Jan Brinkmann (RETIRED) gentoo-dev 2005-05-20 07:50:56 UTC
fixed in cvs, thanks for reporting