• Post Reply Bookmark Topic Watch Topic
  • New Topic

how set Tomcat user the owner or member of group ?

 
amir taghvayi
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18469
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
amir taghvayi
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Tim Holloway . the my os is Unix/Linux .
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!