LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Access Linux shared folder from Windows OS (http://www.linuxquestions.org/questions/linux-software-2/access-linux-shared-folder-from-windows-os-665355/)

nitinpjairaj 08-25-2008 06:37 PM

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..

CRC123 08-26-2008 10: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:

Code:

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

Code:

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 08:08 PM.