This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes the group can not write to file  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "the group can not write to file  " Watch "the group can not write to file  " New topic

the group can not write to file

amir taghvayi
Ranch Hand

Joined: Sep 16, 2011
Posts: 54
hi .
i used tomcat+cpanel in linux os . i set the tomcat group of a file but tomcat can not write to my file . the permission my file is 664 .
the os setting is :

root@panther [/home/domain/public_html]# ls -la
total 36
drwxr-x--- 4 domain nobody 4096 Oct 9 15:18 ./
drwx--x--x 11 domain domain 4096 Oct 9 15:17 ../
drwxr-xr-x 5 tomcat nobody 4096 Oct 8 19:26 ROOT/
drwxr-xr-x 5 jbeanir jbeanir 4096 Oct 17 2011 TEST/

the url of page is http://domain/TEST/newjsp2.jsp

please help me !
Tim Moores

Joined: Sep 21, 2011
Posts: 2408
It doesn't look like the "tomcat" group would have access to the "TEST" directory - have you tried to give that 664 permissions? Is user "jbeanir" part of the "tomcat" group?
I agree. Here's the link:
subject: the group can not write to file
Similar Threads
How to install mutiple Java OS's on Mac?
User access rights/privelages in linux
is my tomcat there?---UNIX client accessing jboss web service... Sounds easy, no?
Changing run levels in Linux