You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Urtzi Larrazabal <ur...@esi.es> on 2002/08/16 12:03:56 UTC

Run Tomcat as tomcat user

Hi !

I am trying to run tomcat as tomcat user. When I start it, it seems to start without any problem. I execute some jsp and it works fine but when I execute a page tha require to connect to mysql database it cant't connect to the database and an empty log named something like DCB_1029483253596.log is generated. Running tomcat as root I haven't any problem.

¿any idea?

Regards,

Urtzi.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Run Tomcat as tomcat user

Posted by Andy Eastham <an...@gliant.com>.
Urtzi,

You need to grant access to the tomcat user.  See the section in the GRANT
command in the mysql manual (available online at the www.mysql.com site).
By default, root can connect without a password, but other users need to be
granted access.

You'll need to execute something like:
GRANT ALL PRIVILEGES on *.* to nobody@yourhostname identified by
‘nobodyspassword’;

The password is not the unix password - its mysql specific and set by this
command.

I recommend you read up to make sure you're only grant what you need - after
all there's no point running as nobody if it can do everything root can...

Test it by doing
su - nobody
then check that you can connect with the password you've set.

Andy

> -----Original Message-----
> From: Urtzi Larrazabal [mailto:urtzi@esi.es]
> Sent: 16 August 2002 11:04
> To: tomcat-user@jakarta.apache.org
> Subject: Run Tomcat as tomcat user
>
>
>
> Hi !
>
> I am trying to run tomcat as tomcat user. When I start it, it
> seems to start without any problem. I execute some jsp and it
> works fine but when I execute a page tha require to connect to
> mysql database it cant't connect to the database and an empty log
> named something like DCB_1029483253596.log is generated. Running
> tomcat as root I haven't any problem.
>
> ¿any idea?
>
> Regards,
>
> Urtzi.
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>