Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93322 - fresh install of tomcat creates uid/gid after trying to chown
Summary: fresh install of tomcat creates uid/gid after trying to chown
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Jan Brinkmann (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-05-20 05:54 UTC by Brett Johnson
Modified: 2005-05-20 07:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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