Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-25-2008, 06:37 PM   #1
LQ Newbie
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
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?

Old 08-26-2008, 10:54 AM   #2
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shared folder on Linux feisty fawn but on windows asks for password? what_ever101 Linux - Networking 1 06-08-2007 11:47 PM
I can see SAMBA shared folder in XP but can't access it vishivishi Linux - Networking 6 08-30-2006 01:13 AM
Can Linux still access shared folder in a domain? Micro420 Linux - Networking 3 03-26-2006 06:00 AM
how to access a shared folder on a windows machine learnfast Linux - Newbie 11 03-12-2005 01:50 AM
Can Linux access WinXP's shared folder? davidas Linux - Newbie 5 04-17-2004 04:48 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration