*
The moose likes Tomcat and the fly likes how set permission(perms=0777) for all file and sub folder in root folder 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 "how set permission(perms=0777) for all file and sub folder in root folder " Watch "how set permission(perms=0777) for all file and sub folder in root folder " New topic
Author

how set permission(perms=0777) for all file and sub folder in root folder

amir taghvayi
Ranch Hand

Joined: Sep 16, 2011
Posts: 54
hi
i use tomcat5.32 + cpanel .
i want all files and sub folders in home/user/public_htm/ROOT/WEB-INF have this permission "perms=0777" .

when i set permission "perms=0777" to "home/user/public_htm/ROOT/WEB-INF" there is not apply for its sub folders and files .

please present a solution .
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951
    
  19

There's a recursive option on the "chmod" command.

But that doesn't matter. You should NEVER use those settings on an exploded WAR.

Firstly, because you should always treat the entire WAR as being read-only both to be standards compliant and to avoid major personal pain and suffering.

Secondly, because giving anyone in the world read/write permissions to a webapp's internals is a major security exposure.


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

Joined: Sep 16, 2011
Posts: 54
it is correct . thanks Tim Holloway
 
 
subject: how set permission(perms=0777) for all file and sub folder in root folder
 
Similar Threads
Include Jsp in Jsp
Tomcat unable to find servlet in Shared linux java hosting Server
include doesn't recognize relative path from sub folder
About the position of tld files
Frontman 2.0 viewsPath