GeeCON Prague 2014*
The moose likes Linux / UNIX and the fly likes Creating a text file from a web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Creating a text file from a web application" Watch "Creating a text file from a web application" New topic
Author

Creating a text file from a web application

Abebe Belew
Greenhorn

Joined: Jul 21, 2004
Posts: 19
Hi all.

I am trying to create a text file from a struts web app.
The owner of the file I create is root as my web app is owned by root.
How can I change the owner to myself? I tried running a shell script but doesnt seem to work. The OS = Linux red hat.

Thanks in advance for your help
Masoud Kalali
Author
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

Do you tried to execute chown yourself file_name as root user in your script?

if you could post more details like your script ... it will be easier to come with a solution.

Thanks.


Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
 
Don't get me started about those stupid light bulbs.
 
subject: Creating a text file from a web application