Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating a text file from a web application

 
Abebe Belew
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic