Bug#457956: /etc/init.d/tomcat5.5 doesn't check user right to start or stop tomcat and hangs

Michael Koch konqueror at gmx.de
Wed Jan 2 10:33:43 UTC 2008


On Wed, Jan 02, 2008 at 10:14:51AM +0100, Vera Mickael wrote:
> 
> 
> Michael Koch a écrit :
> > On Thu, Dec 27, 2007 at 03:40:30PM +0100, Vera Mickael wrote:
> >> Package: tomcat5.5
> >> Version: 5.5.20-2
> >> Severity: important
> >>
> >>
> >> The script should warn the user that has no rights for this 
> >> operation.
> >>
> >> As you may notice I use my own jdk package but I don't think 
> >> this has an effect on this problem.
> > 
> > Which user do you mean? Its normal that scripts in /etc/init.d/ are
> > executed by root. /etc/init.d/ is no exception from this rule.
> > 
> > If thats not your problem please describe in more detail.
> 
> I understand the script has to be runned by root and I 
> always use "sudo" command to run it. But as I launch this 
> command about 30 times a day, sometimes I forget the "sudo".
> 
> Then the script stops and it's difficult to take control on 
> the terminal. The script doesn't check that the user has 
> rights to stop/start tomcat and it fails badly. If the check 
> was done, the script wouldn't stop like this. Maybe it would 
> display a warning message to the user.

I have added check and graceful abort. But I really you should use a
shell alias if you really need to restart tomcat5.5 so much. I cant see
a reason why this should be needed (with hot deployment) but I dont know
your usecase.

Thanks for your bug report.


Cheers,
Michael





More information about the pkg-java-maintainers mailing list