• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
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 .
 
Bartender
Posts: 20842
125
Android Eclipse IDE Tomcat Server Redhat Java 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
Boost this thread!