Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.lang.java.programmer > #4265

Re: File uploaded under 'nobody' uid on linux

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail
From Lew <noone@lewscanon.com>
Newsgroups comp.lang.java.programmer
Subject Re: File uploaded under 'nobody' uid on linux
Date Wed, 18 May 2011 13:17:32 -0400
Organization albasani.net
Lines 33
Message-ID <ir0uum$hic$1@news.albasani.net> (permalink)
References <4b17d468-3056-4dc2-b1bb-5124ec077589@v10g2000yqn.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net SNmtkL3z69w9304NTPIbmFAuZu0r/xfGvtf4+Tu9mmYg9WQBc02cpYRbUsoTbleuCp+NIXPE1R8pWQjn+w4qgLHahKXfM0nqenRB+tepkoqvOS3SQKP2o1KR81O+sVha
NNTP-Posting-Date Wed, 18 May 2011 17:17:11 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="ftckLG8mVNRB4lAy4+PhrB4qMEWYodkZektaJm2bG74Rgsw4+Fjk/CQjZDy8E23wk2/XV4FAEdErKlBdm+SW/K8EMnb91/9pfVQf0KRnWtk3TbeJ46exfxTvP+Fwh6eW"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10
In-Reply-To <4b17d468-3056-4dc2-b1bb-5124ec077589@v10g2000yqn.googlegroups.com>
Cancel-Lock sha1:xmCTTdKXZluSXVTRWh0Cq+12CBA=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4265

Show key headers only | View raw


ruds wrote:
> I have a web application in which users upload files and later I
> convert them to pdf's [sic] using jodconverter.
> What I have found is, when users upload files they are stored under
> 'nobody's' [sic] uid on linux [sic].
> Let me give you a back ground of my webapp.
> tomcat is under /root/apache* directory, I have given a link to actual
> source files and uploaded files stored in the webapps directory of
> apache.
> The actual files are stored under another users home/projects
> directory.
> So when a web user uploads some files it is being stored at above
> mentioned location and when I want to convert the files to pdf I'm am
> not having write permissions to the files as the UID for these files
> is 65534.
> 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.

That depends in great measure on the deployment environment (Tomcat? 
WebSphere?), but ultimately on what user ID the application runs under. 
Presumably it's running as 'nobody', right?

This is actually a Linux question - check your HOW-TOs and the documentation 
for your application server.  I usually just run the startup script under the 
desired user ID.

Another thing you can do is run a 'chmod' script that's setuid to root.

-- 
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

File uploaded under 'nobody' uid on linux ruds <rudranee@gmail.com> - 2011-05-18 01:12 -0700
  Re: File uploaded under 'nobody' uid on linux Lew <noone@lewscanon.com> - 2011-05-18 13:17 -0400
    Re: File uploaded under 'nobody' uid on linux Lew <noone@lewscanon.com> - 2011-05-18 13:17 -0400
      Re: File uploaded under 'nobody' uid on linux ruds <rudranee@gmail.com> - 2011-05-18 21:53 -0700
        Re: File uploaded under 'nobody' uid on linux Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-05-19 10:09 +0100
  Re: File uploaded under 'nobody' uid on linux Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-19 21:50 +1200
    Re: File uploaded under 'nobody' uid on linux Lew <noone@lewscanon.com> - 2011-05-19 09:07 -0400
      Re: File uploaded under 'nobody' uid on linux "John B. Matthews" <nospam@nospam.invalid> - 2011-05-19 20:51 -0400
        Re: File uploaded under 'nobody' uid on linux Lew <noone@lewscanon.com> - 2011-05-19 22:10 -0400
          Re: File uploaded under 'nobody' uid on linux "John B. Matthews" <nospam@nospam.invalid> - 2011-05-20 00:16 -0400
          Re: File uploaded under 'nobody' uid on linux ruds <rudranee@gmail.com> - 2011-05-24 01:15 -0700
            Re: File uploaded under 'nobody' uid on linux Lew <noone@lewscanon.com> - 2011-05-24 08:08 -0400
              Re: File uploaded under 'nobody' uid on linux "John B. Matthews" <nospam@nospam.invalid> - 2011-05-24 17:42 -0400

csiph-web