db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Boynes <jboy...@apache.org>
Subject Re: why does derby create databases as root?
Date Fri, 08 Apr 2005 02:20:43 GMT
edencane@gmail.com wrote:
> Hi,
> 
> I've been using derby as a embedded database.
> When I used java code from a servlet to create a database, it create
> the db with root ownership.
> Why is this.
> here's a snippet of my code.
> 

To my knowledge there is no suid functionality in Java so I would 
presume this is because your servlet container is running as root. This 
is generally considered a *bad idea*

--
Jeremy

Mime
View raw message