• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
amir taghvayi
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
amir taghvayi
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is correct . thanks Tim Holloway
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic