In order to setup the users for Tomcat you have to edit the file tomcat-users.xml
<tomcat-users> <role rolename="admin-gui"/> <role rolename="manager-gui"/> <role rolename="role1"/> <user username="Myadmin" password="s3cret" roles="admin-gui, manager-gui"/> <user username="both" password="s3cret" roles=admin-script"/> <user username="role1" password="change" roles="role1"/> </tomcat-users> Once the users are set, and you could have set several users depending your need, shutdown and startup again your Tomcat and you would be able to see it running for your user and managing it. -----Original Message----- From: Maxfield, Rebecca A [mailto:rmaxf...@providence.edu] Sent: Monday, August 29, 2016 2:20 PM To: users@tomcat.apache.org Subject: Trouble setting TOMCAT_USER Hi there! In order to resolve an issue with a Tomcat web app, I'm trying to run Tomcat as a user other than the default user. Following other advice, I looked in the conf file (/etc/tomcat/tomcat.conf) for TOMCAT_USER and saw that it wasn't set; however, my efforts to set it haven't seemed to result in any change. I wrote: TOMCAT_USER="myusername" which is the same syntax as the other variables in the file, JAVA_HOME and so on. (Incidentally, these don't echo in the command line, but Tomcat does seem to be running.) I then restarted, but a look at the process list showed that it was still running as default user "tomcat" rather than as myusername. What am I missing and how can I run Tomcat as another user? Thanks! --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org