Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21772 - tomcat-4.1.24 -> 4.1.24-r1 upgrade loses "tomcat" user & group
Summary: tomcat-4.1.24 -> 4.1.24-r1 upgrade loses "tomcat" user & group
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Low minor (vote)
Assignee: Dylan Carlson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-27 11:44 UTC by Dwight Tuinstra
Modified: 2009-11-24 11:35 UTC (History)
2 users (show)

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 Dwight Tuinstra 2003-05-27 11:44:08 UTC
I performed "emerge --update tomcat" to pick up the -r1 version. When removing the 
old version, the last step it performed was removing the "tomcat" user and group. Since 
this is the last step performed in the upgrade, it leaves the system without these. 
 
Could not reproduce it, as the 'emerge sync' removed tomcat-4.1.24 ebuild. 
 
Fixed it by unmerging and re-emerging tomcat; this time received message along the 
lines of "user and group tomcat preserved". Might also work to just emerge tomcat 
again.
Comment 1 Clemens Schwaighofer 2003-05-27 23:12:39 UTC
yeah I have this too [me too ;)]

strange thing is, in the ebuild in the function pkg_postrm() it says ... if [ -z "${INSTALLED}" ] ... remove users, which should be correct as in src_installing the var INSTALLED="yes" is set ... so ... hmm ... my bash knowledge is too small :((
Comment 2 Dylan Carlson (RETIRED) gentoo-dev 2003-05-28 13:03:56 UTC
Hrm... think this is a problem in the Portage --update code, not the ebuild.   In 
any case I'm going to sit on this for a while since the tomcat user will be merged 
into baselayout soon.  
Comment 3 Peter Gantner (a.k.a. nephros) 2003-05-29 21:47:38 UTC
anyway, I fixed this in the meantime by doing:
groupadd tomcat
useradd -d /opt/tomcat -g tomcat tomcat
cd /opt/tomcat && chown -R tomcat.tomcat *
cd /var/log && chown tomcat.tomcat tomcat

is this correct?
should some of the files in /opt/tomcat bleong to root? how about /var/log/tomcat?
Comment 4 Chris Aniszczyk (RETIRED) gentoo-dev 2004-02-15 17:19:10 UTC
Fixed in 5.0.18 and the new 4.1.29
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-11-24 11:35:58 UTC
*** Bug 148058 has been marked as a duplicate of this bug. ***