-   Linux - Software (
-   -   Access Linux shared folder from Windows OS (

nitinpjairaj 08-25-2008 07:37 PM

Access Linux shared folder from Windows OS

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?


CRC123 08-26-2008 11:54 AM

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:


//<windowsServer>/<shareName> /<pathToMountPoint> cifs guest 0 0
After that, umount the partition from the location you currently have it, then run:


mount -a
This will cause all entries in /etc/fstab to be mounted if they are done correctly.

after that, you shouldn't need password anymore.

All times are GMT -5. The time now is 09:11 PM.