This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes how set Tomcat user the owner or member of group ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how set Tomcat user the owner or member of group ?" Watch "how set Tomcat user the owner or member of group ?" New topic
Author

how set Tomcat user the owner or member of group ?

amir taghvayi
Ranch Hand

Joined: Sep 16, 2011
Posts: 54
hi
my tomcat user cannot execute and write a file .
how set tomcat user the owner of this file ?
how set tomcat user the member of group 'nobody' ?

please help me !
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15959
    
  19

That depends on the OS you're using. I don't think that Windows has a "nobody" user, though, so I'll give information for Unix/Linux.

On the Unix and Unix-like OS's, you can change the owner/group using the "chown" system command. However, rather than running as "nobody", you should create a user/group specifically for Tomcat.

For more detailed information, I recommend that you ask in the Unix/Linux forum, since there are more people there that are expert in such matters.


Customer surveys are for companies who didn't pay proper attention to begin with.
amir taghvayi
Ranch Hand

Joined: Sep 16, 2011
Posts: 54
thanks Tim Holloway . the my os is Unix/Linux .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how set Tomcat user the owner or member of group ?
 
Similar Threads
newbie: UNIX and Tomcat file permissions
how to change the owner of the war file in tomcat?
Error starting Tomcat in Ubuntu
Java code for giving write permission to group(775)
what is thios ERROR