This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 17161
    
  27

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.


An IDE is no substitute for an Intelligent Developer.
amir taghvayi
Ranch Hand

Joined: Sep 16, 2011
Posts: 54
it is correct . thanks Tim Holloway
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how set permission(perms=0777) for all file and sub folder in root folder
 
It's not a secret anymore!