Access Linux shared folder from Windows OS
Hi,
From wy web based Java application I need to copy a XML file from Windows OS to Linux OS in a shared folder. For that we had used sambha and had mounted the shared directory in Linux OS and now we can access the folder by a user id guest with password guest. Now from JSP web application how do I pass by default the user id and password so that when linux shared folder is acccessed it does not prompt for user id and password? Thanks.. |
I have done a similar thing but have not tried to access it from a web app. Have you put an entry in /etc/fstab so that the windows partitions can be mounted automatically? If not, you can add something like this to your /etc/fstab file:
Code:
//<windowsServer>/<shareName> /<pathToMountPoint> cifs guest 0 0 Code:
mount -a after that, you shouldn't need password anymore. |
All times are GMT -5. The time now is 08:21 PM. |