• 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

File System Access.

 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Can make the apache-tomcat or jboss to access the file system.

I just need to navigate through file system, in the machine where tomcat is installed.

Is there a way to achieve this by any configuration or we need to write program.

Thanks,
Bennet.
 
Saloon Keeper
Posts: 27762
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
You'll have to explain.

If you mean "can I allow a remote user to access any file on the server I want using Tomcat/JBoss", no you can't. Tomcat is a WEB server, NOT a file server. Besides, that would be a horrible security issue if anyone who wanted to could access any server file at will.

However, if web applications running under Tomcat/JBoss need to access files in the filesystem of the server machine that they're running on, they can do so as long as the user that Tomcat's running under has appropriate file access rights. Just like any other application.
 
Bennet Xavier
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tim Holloway,

Thank you for your reply.

Actually, that's what i want, he must be able to access and do anything he wants.

Is it possible to achieve this in tomcat?

Thanks,
Bennet

 
Tim Holloway
Saloon Keeper
Posts: 27762
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

Bennet Xavier wrote:Hi Tim Holloway,

Thank you for your reply.

Actually, that's what i want, he must be able to access and do anything he wants.

Is it possible to achieve this in tomcat?

Thanks,
Bennet



Fortunately, no. If he could, so could any random hacker. And, as I said, a web server is not a file server.

If you want him to have file access to the server, you must install file server software on that machine (assuming there isn't already something installed), post out whatever network shares you need to publish, and setup file access rights for him. And, of course, open the firewall ports.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic