• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Saloon Keeper
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it is correct . thanks Tim Holloway
reply
    Bookmark Topic Watch Topic
  • New Topic