Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C07FB200B73 for ; Mon, 29 Aug 2016 22:28:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BEE72160AB8; Mon, 29 Aug 2016 20:28:16 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 11A28160A89 for ; Mon, 29 Aug 2016 22:28:15 +0200 (CEST) Received: (qmail 36178 invoked by uid 500); 29 Aug 2016 20:28:14 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 36163 invoked by uid 99); 29 Aug 2016 20:28:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2016 20:28:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 2CF06180424 for ; Mon, 29 Aug 2016 20:28:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id gqjEGULfMDoA for ; Mon, 29 Aug 2016 20:28:11 +0000 (UTC) Received: from thor.wissensbank.com (thor.wissensbank.com [81.169.250.120]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 6CF115F245 for ; Mon, 29 Aug 2016 20:28:11 +0000 (UTC) Received: from thor.wissensbank.com (localhost [127.0.0.1]) by thor.wissensbank.com (Postfix) with ESMTP id 2D8C015A60DE3 for ; Mon, 29 Aug 2016 22:28:04 +0200 (CEST) Received: by thor.wissensbank.com (Postfix, from userid 500) id 20C5915A60DE6; Mon, 29 Aug 2016 22:28:04 +0200 (CEST) Received: from [192.168.245.129] (8.150.14.62.static.jazztel.es [62.14.150.8]) (Authenticated sender: andre.warnier@ice-sa.com) by thor.wissensbank.com (Postfix) with ESMTPA id 8121C15A60DE3 for ; Mon, 29 Aug 2016 22:28:03 +0200 (CEST) From: =?UTF-8?Q?Andr=c3=a9_Warnier_=28tomcat=29?= Subject: Re: Trouble setting TOMCAT_USER To: users@tomcat.apache.org References: <0A71307054A34816A4A9E85C2D44B4DA@ubkja> Message-ID: <57C49ACC.1000207@ice-sa.com> Date: Mon, 29 Aug 2016 22:27:56 +0200 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <0A71307054A34816A4A9E85C2D44B4DA@ubkja> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP archived-at: Mon, 29 Aug 2016 20:28:16 -0000 Jorge, 1) don't top-post On 29.08.2016 21:50, Jorge Alfonso wrote: > In order to setup the users for Tomcat you have to edit the file > > tomcat-users.xml > > > > > > > > > > > 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. > 2) this has nothing to do with the user under which Tomcat is running. > Rebecca, > -----Original Message----- > From: Maxfield, Rebecca A [mailto:rmaxfiel@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? > You do not say so, but from the above it is a valid guess that you are running tomcat under some flavor of Linux, and that you installed it from the package provided by that Linux distribution. Unfortunately, without more information, it is difficult to know how you are really starting tomcat, and what influence that "TOMCAT_USER" line really has in the big scheme of things. Try to be more explicit and provide some details, such as which Linux, what command you use to start/restart tomcat, what version of Tomcat that is, etc.. We don't have a crystal ball here, so we don't know those things. > Thanks! > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org