Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.java.programmer Subject: Re: File uploaded under 'nobody' uid on linux Date: Fri, 20 May 2011 00:16:24 -0400 Organization: The Wasteland Lines: 45 Message-ID: References: <4b17d468-3056-4dc2-b1bb-5124ec077589@v10g2000yqn.googlegroups.com> NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4336 In article , Lew wrote: > John B. Matthews wrote: > > Lew wrote: > >> Lawrence D'Oliveiro wrote: > >>> ruds wrote: > >>>> Now, please tell me what should I do so that whenever files are > >>>> uploaded they are stored with the user's name where all code and > >>>> other files are stored. > >>> > >>> On way is to activate this mechanism > >>> . > > >> The OP has not stated that he's using httpd. > > > Lew: This point is well taken, but the article _does_ outline the > > (myriad) security issues that ruds should consider. > > > > ruds: If you don't use httpd/suEXEC, you're likely going to have to > > create something similar. > > I use Tomcat a lot. I always run it as a non-privileged user, with > the installation directory tree under that same user's ownership. > This "nobody" issue has never arisen under that configuration for me. > > I also run it as a multi-instance installation > > > "Optionally, Tomcat may be configured for multiple instances by > defining $CATALINA_BASE for each instance." > > One useful approach is to set CATALINA_BASE to $HOME/.tomcat or > similar directory within the home directory of each designated Tomcat > user. > > See the section "Advanced Configuration - Multiple Tomcat Instances" > in the $CATALINA_HOME/RUNNING.txt file. I like this; thank you for the pointer. -- John B. Matthews trashgod at gmail dot com