aspose file tools*
The moose likes Tomcat and the fly likes File System Access. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "File System Access." Watch "File System Access." New topic
Author

File System Access.

Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162
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.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15629
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162
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

Joined: Jun 25, 2001
Posts: 15629
    
  15

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: File System Access.
 
Similar Threads
Applets not working in a WebBrowser
Execute swing program
Can not recognize javax.servlet
can we create folder in client machine using EJB RMI?
how to write into a property file from web browser