Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

we have a webapp running on a Linux server with tomcat6 which creates folders and files on the local filesystem. The site is hosted by a third party, which is pretty strict on their security settings. So they gave us a few user accounts wich are in the tomcat6 group, the same as the webapp is in. The problem is that every file that is created by the webapp has only write rights for the owner and not for the group.

I've been looking on the web for a while to see if there is a way that we can setup the webapp so that everything that is created gets all rights for both owner as group. But since i'm a programmer and not a server expert, I didn't manage to find some clear info on this. Or should we just be changing this in our code so the webapp just takes care of it?

Thanks in advance for any advice.

share|improve this question

migrated from stackoverflow.com Sep 4 '12 at 10:51

This question came from our site for professional and enthusiast programmers.

    
Did you consider setting umask u=rwx,g=rwx,o= for the tomcat user? –  f_puras Sep 3 '12 at 9:53
    
Sadly enough we do not have permissions to do this, but i'll ask the host if this is an option –  Andy Sep 3 '12 at 12:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.